mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-14 08:55:59 +08:00
DataFlash: save some flash space on APM2
don't include log message headers that are not used on APM2
This commit is contained in:
@@ -785,6 +785,7 @@ void DataFlash_Class::Log_Write_IMU(const AP_InertialSensor &ins)
|
||||
if (ins.get_gyro_count() < 2 && ins.get_accel_count() < 2) {
|
||||
return;
|
||||
}
|
||||
#if INS_MAX_INSTANCES > 1
|
||||
const Vector3f &gyro2 = ins.get_gyro(1);
|
||||
const Vector3f &accel2 = ins.get_accel(1);
|
||||
struct log_IMU pkt2 = {
|
||||
@@ -814,6 +815,7 @@ void DataFlash_Class::Log_Write_IMU(const AP_InertialSensor &ins)
|
||||
accel_z : accel3.z
|
||||
};
|
||||
WriteBlock(&pkt3, sizeof(pkt3));
|
||||
#endif
|
||||
}
|
||||
|
||||
// Write a text message to the log
|
||||
|
||||
Reference in New Issue
Block a user