Browse Source

AP_Vehicle: move some common init_ardupilot code up to AP_Vehicle

zr-v5.1
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
07c7a98269
  1. 2
      libraries/AP_Vehicle/AP_Vehicle.cpp
  2. 1
      libraries/AP_Vehicle/AP_Vehicle.h

2
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
#include "AP_Vehicle.h"
#include <AP_Common/AP_FWVersion.h>
#define SCHED_TASK(func, rate_hz, max_time_micros) SCHED_TASK_CLASS(AP_Vehicle, &vehicle, func, rate_hz, max_time_micros)
/*

1
libraries/AP_Vehicle/AP_Vehicle.h

@ -163,6 +163,7 @@ public: @@ -163,6 +163,7 @@ public:
protected:
virtual void init_ardupilot() = 0;
virtual void load_parameters() = 0;
// board specific config
AP_BoardConfig BoardConfig;

Loading…
Cancel
Save