Copter: Log_Write_Startup writes parameters
This commit is contained in:
parent
31aae1f019
commit
b2ca7ee3fa
@ -451,13 +451,19 @@ struct PACKED log_Startup {
|
||||
// Write Startup packet
|
||||
void Copter::Log_Write_Startup()
|
||||
{
|
||||
// Write all current parameters
|
||||
DataFlash.Log_Write_Parameters();
|
||||
|
||||
struct log_Startup pkt = {
|
||||
LOG_PACKET_HEADER_INIT(LOG_STARTUP_MSG),
|
||||
time_us : hal.scheduler->micros64()
|
||||
};
|
||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||
|
||||
Log_Write_EntireMission();
|
||||
// write all commands to the dataflash as well
|
||||
if (should_log(MASK_LOG_CMD)) {
|
||||
Log_Write_EntireMission();
|
||||
}
|
||||
}
|
||||
|
||||
void Copter::Log_Write_EntireMission()
|
||||
|
@ -253,11 +253,6 @@ void Copter::init_ardupilot()
|
||||
heli_init();
|
||||
#endif
|
||||
|
||||
#if LOGGING_ENABLED == ENABLED
|
||||
// Write all current parameters
|
||||
DataFlash.Log_Write_Parameters();
|
||||
#endif
|
||||
|
||||
startup_ground(true);
|
||||
|
||||
#if LOGGING_ENABLED == ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user