Replay: provide a log bitmask to Dataflash constructor

This commit is contained in:
Peter Barker 2017-06-27 18:25:07 +10:00 committed by Francisco Ferreira
parent f8d1ac47c7
commit 29de7b1a17
1 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,7 @@
class ReplayVehicle {
public:
ReplayVehicle() { unused = -1; }
void setup();
void load_parameters(void);
@ -69,7 +70,8 @@ public:
AP_InertialNav_NavEKF inertial_nav{ahrs};
AP_Vehicle::FixedWing aparm;
AP_Airspeed airspeed;
DataFlash_Class dataflash{"Replay v0.1"};
AP_Int32 unused; // logging is magic for Replay; this is unused
DataFlash_Class dataflash{"Replay v0.1", unused};
private:
Parameters g;