Rover: use visual odometry singleton
This commit is contained in:
parent
63427629e1
commit
dbdf17d6c6
@ -1114,15 +1114,6 @@ AP_AdvancedFailsafe *GCS_MAVLINK_Rover::get_advanced_failsafe() const
|
||||
#endif
|
||||
}
|
||||
|
||||
AP_VisualOdom *GCS_MAVLINK_Rover::get_visual_odom() const
|
||||
{
|
||||
#if VISUAL_ODOMETRY_ENABLED == ENABLED
|
||||
return &rover.g2.visual_odom;
|
||||
#else
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool GCS_MAVLINK_Rover::set_mode(const uint8_t mode)
|
||||
{
|
||||
Mode *new_mode = rover.mode_from_mode_num((enum Mode::Number)mode);
|
||||
|
@ -14,7 +14,6 @@ protected:
|
||||
uint32_t telem_delay() const 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