mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tracker: correct compilation when logging is disabled
This commit is contained in:
parent
0a0e11ba21
commit
cca9a6e557
@ -44,7 +44,9 @@ const AP_Scheduler::Task Tracker::scheduler_tasks[] = {
|
|||||||
SCHED_TASK(compass_accumulate, 50, 1500),
|
SCHED_TASK(compass_accumulate, 50, 1500),
|
||||||
SCHED_TASK_CLASS(AP_Baro, &tracker.barometer, accumulate, 50, 900),
|
SCHED_TASK_CLASS(AP_Baro, &tracker.barometer, accumulate, 50, 900),
|
||||||
SCHED_TASK(ten_hz_logging_loop, 10, 300),
|
SCHED_TASK(ten_hz_logging_loop, 10, 300),
|
||||||
|
#if LOGGING_ENABLED == ENABLED
|
||||||
SCHED_TASK_CLASS(DataFlash_Class, &tracker.DataFlash, periodic_tasks, 50, 300),
|
SCHED_TASK_CLASS(DataFlash_Class, &tracker.DataFlash, periodic_tasks, 50, 300),
|
||||||
|
#endif
|
||||||
SCHED_TASK_CLASS(AP_InertialSensor, &tracker.ins, periodic, 50, 50),
|
SCHED_TASK_CLASS(AP_InertialSensor, &tracker.ins, periodic, 50, 50),
|
||||||
SCHED_TASK_CLASS(AP_Notify, &tracker.notify, update, 50, 100),
|
SCHED_TASK_CLASS(AP_Notify, &tracker.notify, update, 50, 100),
|
||||||
SCHED_TASK(check_usb_mux, 10, 300),
|
SCHED_TASK(check_usb_mux, 10, 300),
|
||||||
|
@ -94,5 +94,6 @@ void Tracker::Log_Write_Attitude(void) {}
|
|||||||
void Tracker::log_init(void) {}
|
void Tracker::log_init(void) {}
|
||||||
void Tracker::Log_Write_Vehicle_Pos(int32_t lat, int32_t lng, int32_t alt, const Vector3f& vel) {}
|
void Tracker::Log_Write_Vehicle_Pos(int32_t lat, int32_t lng, int32_t alt, const Vector3f& vel) {}
|
||||||
void Tracker::Log_Write_Vehicle_Baro(float pressure, float altitude) {}
|
void Tracker::Log_Write_Vehicle_Baro(float pressure, float altitude) {}
|
||||||
|
void Tracker::Log_Write_Vehicle_Startup_Messages() {}
|
||||||
|
|
||||||
#endif // LOGGING_ENABLED
|
#endif // LOGGING_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user