|
|
@ -39,13 +39,12 @@ const struct LogStructure log_structure[] = { |
|
|
|
"FBBBGGB000"} |
|
|
|
"FBBBGGB000"} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
LogReader::LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, Compass &_compass, AP_GPS &_gps,
|
|
|
|
LogReader::LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, Compass &_compass, AP_GPS &_gps,
|
|
|
|
AP_Airspeed &_airspeed, DataFlash_Class &_dataflash, const char **&_nottypes): |
|
|
|
AP_Airspeed &_airspeed, DataFlash_Class &_dataflash, const char **&_nottypes): |
|
|
|
DataFlashFileReader(), |
|
|
|
DataFlashFileReader(), |
|
|
|
vehicle(VehicleType::VEHICLE_UNKNOWN), |
|
|
|
vehicle(VehicleType::VEHICLE_UNKNOWN), |
|
|
|
ahrs(_ahrs), |
|
|
|
ahrs(_ahrs), |
|
|
|
ins(_ins), |
|
|
|
ins(_ins), |
|
|
|
baro(_baro), |
|
|
|
|
|
|
|
compass(_compass), |
|
|
|
compass(_compass), |
|
|
|
gps(_gps), |
|
|
|
gps(_gps), |
|
|
|
airspeed(_airspeed), |
|
|
|
airspeed(_airspeed), |
|
|
@ -231,7 +230,7 @@ bool LogReader::handle_log_format_msg(const struct log_Format &f) |
|
|
|
sim_attitude); |
|
|
|
sim_attitude); |
|
|
|
} else if (streq(name, "BARO")) { |
|
|
|
} else if (streq(name, "BARO")) { |
|
|
|
msgparser[f.type] = new LR_MsgHandler_BARO(formats[f.type], dataflash, |
|
|
|
msgparser[f.type] = new LR_MsgHandler_BARO(formats[f.type], dataflash, |
|
|
|
last_timestamp_usec, baro); |
|
|
|
last_timestamp_usec); |
|
|
|
} else if (streq(name, "ARM")) { |
|
|
|
} else if (streq(name, "ARM")) { |
|
|
|
msgparser[f.type] = new LR_MsgHandler_ARM(formats[f.type], dataflash, |
|
|
|
msgparser[f.type] = new LR_MsgHandler_ARM(formats[f.type], dataflash, |
|
|
|
last_timestamp_usec); |
|
|
|
last_timestamp_usec); |
|
|
|