mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: use visual odometry singleton
This commit is contained in:
parent
dbdf17d6c6
commit
0dce6172f2
@ -1324,16 +1324,6 @@ AP_AdvancedFailsafe *GCS_MAVLINK_Copter::get_advanced_failsafe() const
|
||||
#endif
|
||||
}
|
||||
|
||||
AP_VisualOdom *GCS_MAVLINK_Copter::get_visual_odom() const
|
||||
{
|
||||
#if VISUAL_ODOMETRY_ENABLED == ENABLED
|
||||
return &copter.g2.visual_odom;
|
||||
#else
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
MAV_RESULT GCS_MAVLINK_Copter::handle_flight_termination(const mavlink_command_long_t &packet) {
|
||||
MAV_RESULT result = MAV_RESULT_FAILED;
|
||||
|
||||
|
@ -16,7 +16,6 @@ protected:
|
||||
|
||||
MAV_RESULT handle_flight_termination(const mavlink_command_long_t &packet) override;
|
||||
AP_AdvancedFailsafe *get_advanced_failsafe() const override;
|
||||
AP_VisualOdom *get_visual_odom() const override;
|
||||
|
||||
uint8_t sysid_my_gcs() const override;
|
||||
bool sysid_enforce() const override;
|
||||
|
Loading…
Reference in New Issue
Block a user