Browse Source

AP_Vehicle: wire-in tramp support

apm_2208
Andy Piper 3 years ago committed by Andrew Tridgell
parent
commit
58ea8d6b7b
  1. 7
      libraries/AP_Vehicle/AP_Vehicle.cpp
  2. 5
      libraries/AP_Vehicle/AP_Vehicle.h

7
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -208,6 +208,10 @@ void AP_Vehicle::setup() @@ -208,6 +208,10 @@ void AP_Vehicle::setup()
smartaudio.init();
#endif
#if AP_TRAMP_ENABLED
tramp.init();
#endif
#if AP_PARAM_KEY_DUMP
AP_Param::show_all(hal.console, true);
#endif
@ -304,6 +308,9 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = { @@ -304,6 +308,9 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = {
#endif
SCHED_TASK(update_dynamic_notch_at_specified_rate, LOOP_RATE, 200, 215),
SCHED_TASK_CLASS(AP_VideoTX, &vehicle.vtx, update, 2, 100, 220),
#if AP_TRAMP_ENABLED
SCHED_TASK_CLASS(AP_Tramp, &vehicle.tramp, update, 50, 50, 225),
#endif
SCHED_TASK(send_watchdog_reset_statustext, 0.1, 20, 225),
#if HAL_WITH_ESC_TELEM
SCHED_TASK_CLASS(AP_ESC_Telem, &vehicle.esc_telem, update, 100, 50, 230),

5
libraries/AP_Vehicle/AP_Vehicle.h

@ -49,6 +49,7 @@ @@ -49,6 +49,7 @@
#include <AP_Frsky_Telem/AP_Frsky_Parameters.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
#include <AP_VideoTX/AP_SmartAudio.h>
#include <AP_VideoTX/AP_Tramp.h>
#include <SITL/SITL.h>
#include <AP_CustomRotations/AP_CustomRotations.h>
#include <AP_AIS/AP_AIS.h>
@ -378,6 +379,10 @@ protected: @@ -378,6 +379,10 @@ protected:
AP_SmartAudio smartaudio;
#endif
#if AP_TRAMP_ENABLED
AP_Tramp tramp;
#endif
#if HAL_EFI_ENABLED
// EFI Engine Monitor
AP_EFI efi;

Loading…
Cancel
Save