mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
Sub: move dummy methods into system.cpp
This commit is contained in:
parent
54373a6703
commit
5a28aa9c1b
@ -836,7 +836,3 @@ int32_t GCS_MAVLINK_Sub::global_position_int_relative_alt() const {
|
|||||||
}
|
}
|
||||||
return GCS_MAVLINK::global_position_int_relative_alt();
|
return GCS_MAVLINK::global_position_int_relative_alt();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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; }
|
|
||||||
|
@ -302,3 +302,9 @@ bool Sub::should_log(uint32_t mask)
|
|||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <AP_AdvancedFailsafe/AP_AdvancedFailsafe.h>
|
||||||
|
|
||||||
|
// 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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user