File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
769774bool Copter::get_wp_distance_m (float &distance) const
770775{
771776 // see GCS_MAVLINK_Copter::send_nav_controller_output()
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments