mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: support multiple simultaneous backends
This commit is contained in:
parent
f57d237181
commit
5d46a9add0
@ -211,8 +211,7 @@ struct PACKED log_Startup {
|
||||
uint16_t command_total;
|
||||
};
|
||||
|
||||
// do not add any extra log writes to this function; see LogStartup.cpp
|
||||
bool Rover::Log_Write_Startup(uint8_t type)
|
||||
void Rover::Log_Write_Startup(uint8_t type)
|
||||
{
|
||||
struct log_Startup pkt = {
|
||||
LOG_PACKET_HEADER_INIT(LOG_STARTUP_MSG),
|
||||
@ -220,7 +219,7 @@ bool Rover::Log_Write_Startup(uint8_t type)
|
||||
startup_type : type,
|
||||
command_total : mission.num_commands()
|
||||
};
|
||||
return DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
||||
struct PACKED log_Control_Tuning {
|
||||
|
@ -500,6 +500,10 @@ const AP_Param::Info Rover::var_info[] = {
|
||||
// @Path: ../libraries/AP_Arming/AP_Arming.cpp
|
||||
GOBJECT(arming, "ARMING_", AP_Arming),
|
||||
|
||||
// @Group: LOG
|
||||
// @Path: ../libraries/DataFlash/DataFlash.cpp
|
||||
GOBJECT(DataFlash, "LOG", DataFlash_Class),
|
||||
|
||||
// @Group: BATT
|
||||
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
|
||||
GOBJECT(battery, "BATT", AP_BattMonitor),
|
||||
|
@ -196,6 +196,8 @@ public:
|
||||
k_param_steerController,
|
||||
k_param_barometer,
|
||||
|
||||
k_param_DataFlash = 253, // Logging Group
|
||||
|
||||
// 254,255: reserved
|
||||
};
|
||||
|
||||
|
@ -420,7 +420,7 @@ private:
|
||||
void do_erase_logs(void);
|
||||
void Log_Write_Performance();
|
||||
void Log_Write_Steering();
|
||||
bool Log_Write_Startup(uint8_t type);
|
||||
void Log_Write_Startup(uint8_t type);
|
||||
void Log_Write_Control_Tuning();
|
||||
void Log_Write_Nav_Tuning();
|
||||
void Log_Write_Sonar();
|
||||
|
Loading…
Reference in New Issue
Block a user