Tracker: move all dummy methods to system.cpp

MAVLink makes less sense than this
This commit is contained in:
Peter Barker 2019-11-04 11:42:37 +11:00 committed by Peter Barker
parent 88647ff2e9
commit deb0fdccc8
2 changed files with 15 additions and 12 deletions

View File

@ -668,15 +668,3 @@ void GCS_MAVLINK_Tracker::send_global_position_int()
0, // Z speed cm/s (+ve Down) 0, // Z speed cm/s (+ve Down)
tracker.ahrs.yaw_sensor); // compass heading in 1/100 degree tracker.ahrs.yaw_sensor); // compass heading in 1/100 degree
} }
/* dummy methods to avoid having to link against AP_Camera */
void AP_Camera::control_msg(const mavlink_message_t &) {}
void AP_Camera::configure(float, float, float, float, float, float, float) {}
void AP_Camera::control(float, float, float, float, float, float) {}
void AP_Camera::send_feedback(mavlink_channel_t chan) {}
/* end dummy methods to avoid having to link against AP_Camera */
// dummy method to avoid linking AFS
bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) {return false;}
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }

View File

@ -264,3 +264,18 @@ bool Tracker::should_log(uint32_t mask)
} }
return true; return true;
} }
#include <AP_Camera/AP_Camera.h>
#include <AP_AdvancedFailsafe/AP_AdvancedFailsafe.h>
/* dummy methods to avoid having to link against AP_Camera */
void AP_Camera::control_msg(const mavlink_message_t &) {}
void AP_Camera::configure(float, float, float, float, float, float, float) {}
void AP_Camera::control(float, float, float, float, float, float) {}
void AP_Camera::send_feedback(mavlink_channel_t chan) {}
/* end dummy methods to avoid having to link against AP_Camera */
// dummy method to avoid linking AFS
bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) {return false;}
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }