Skip to content

Commit 7230fe2

Browse files
committed
ArduCopter: add support for MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET
1 parent adc9a7d commit 7230fe2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ArduCopter/Copter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,11 @@ void Copter::update_altitude()
766766
}
767767

768768
// vehicle specific waypoint info helpers
769+
bool Copter::get_wp_location(Location &loc) const
770+
{
771+
return flightmode->get_wp(loc);
772+
}
773+
769774
bool Copter::get_wp_distance_m(float &distance) const
770775
{
771776
// see GCS_MAVLINK_Copter::send_nav_controller_output()

ArduCopter/Copter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ class Copter : public AP_Vehicle {
696696
void read_AHRS(void);
697697
void update_altitude();
698698
bool get_wp_distance_m(float &distance) const override;
699+
bool get_wp_location(Location &loc) const override;
699700
bool get_wp_bearing_deg(float &bearing) const override;
700701
bool get_wp_crosstrack_error_m(float &xtrack_error) const override;
701702
bool get_rate_ef_targets(Vector3f& rate_ef_targets) const override;

0 commit comments

Comments
 (0)