SITL: stop taking DataFlash pointer as argument

This commit is contained in:
Peter Barker 2019-01-18 09:15:50 +11:00 committed by Peter Barker
parent 071dca8fe8
commit 834b45ce18
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ void SITL::simstate_send(mavlink_channel_t chan)
} }
/* report SITL state to DataFlash */ /* report SITL state to DataFlash */
void SITL::Log_Write_SIMSTATE(DataFlash_Class *DataFlash) void SITL::Log_Write_SIMSTATE()
{ {
float yaw; float yaw;
@ -195,7 +195,7 @@ void SITL::Log_Write_SIMSTATE(DataFlash_Class *DataFlash)
q3 : state.quaternion.q3, q3 : state.quaternion.q3,
q4 : state.quaternion.q4, q4 : state.quaternion.q4,
}; };
DataFlash->WriteBlock(&pkt, sizeof(pkt)); DataFlash_Class::instance()->WriteBlock(&pkt, sizeof(pkt));
} }
/* /*

View File

@ -226,7 +226,7 @@ public:
void simstate_send(mavlink_channel_t chan); void simstate_send(mavlink_channel_t chan);
void Log_Write_SIMSTATE(DataFlash_Class *dataflash); void Log_Write_SIMSTATE();
// convert a set of roll rates from earth frame to body frame // convert a set of roll rates from earth frame to body frame
static void convert_body_frame(double rollDeg, double pitchDeg, static void convert_body_frame(double rollDeg, double pitchDeg,