mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: log board voltage
This commit is contained in:
parent
c45f90fb06
commit
991d6598ef
@ -362,6 +362,7 @@ struct PACKED log_Current {
|
||||
int16_t throttle_in;
|
||||
int16_t battery_voltage;
|
||||
int16_t current_amps;
|
||||
uint16_t board_voltage;
|
||||
float current_total;
|
||||
};
|
||||
|
||||
@ -372,6 +373,7 @@ static void Log_Write_Current()
|
||||
throttle_in : g.channel_throttle.control_in,
|
||||
battery_voltage : (int16_t)(battery_voltage1 * 100.0),
|
||||
current_amps : (int16_t)(current_amps1 * 100.0),
|
||||
board_voltage : board_voltage(),
|
||||
current_total : current_total1
|
||||
};
|
||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||
@ -440,7 +442,9 @@ static const struct LogStructure log_structure[] PROGMEM = {
|
||||
{ LOG_MODE_MSG, sizeof(log_Mode),
|
||||
"MODE", "B", "Mode" },
|
||||
{ LOG_CURRENT_MSG, sizeof(log_Current),
|
||||
"CURR", "hhhf", "Thr,Volt,Curr,CurrTot" },
|
||||
"CURR", "hhhHf", "Thr,Volt,Curr,Vcc,CurrTot" },
|
||||
{ LOG_COMPASS_MSG, sizeof(log_Compass),
|
||||
"MAG", "hhhhhhhhh", "MagX,MagY,MagZ,OfsX,OfsY,OfsZ,MOfsX,MOfsY,MOfsZ" },
|
||||
};
|
||||
|
||||
// Read the DataFlash.log memory : Packet Parser
|
||||
|
Loading…
Reference in New Issue
Block a user