Replay: use a larger LOG_FILE_BUFSIZE for Replay
This commit is contained in:
parent
248ce2e0e6
commit
276f5dd3f1
@ -381,7 +381,7 @@ bool LR_MsgHandler::set_parameter(const char *name, float value)
|
||||
{
|
||||
const char *ignore_parms[] = { "GPS_TYPE", "AHRS_EKF_TYPE", "EK2_ENABLE", "EKF_ENABLE",
|
||||
"COMPASS_ORIENT", "COMPASS_ORIENT2",
|
||||
"COMPASS_ORIENT3"};
|
||||
"COMPASS_ORIENT3", "LOG_FILE_BUFSIZE"};
|
||||
for (uint8_t i=0; i < ARRAY_SIZE(ignore_parms); i++) {
|
||||
if (strncmp(name, ignore_parms[i], AP_MAX_NAME_SIZE) == 0) {
|
||||
::printf("Ignoring set of %s to %f\n", name, value);
|
||||
|
@ -344,7 +344,7 @@ void LogReader::end_format_msgs(void)
|
||||
strncpy(pkt.name, s->name, sizeof(pkt.name));
|
||||
strncpy(pkt.format, s->format, sizeof(pkt.format));
|
||||
strncpy(pkt.labels, s->labels, sizeof(pkt.labels));
|
||||
dataflash.WriteBlock(&pkt, sizeof(pkt));
|
||||
dataflash.WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,6 +157,7 @@ void ReplayVehicle::load_parameters(void)
|
||||
AP_Param::set_default_by_name("EK2_ENABLE", 1);
|
||||
AP_Param::set_default_by_name("LOG_REPLAY", 1);
|
||||
AP_Param::set_default_by_name("AHRS_EKF_TYPE", 2);
|
||||
AP_Param::set_default_by_name("LOG_FILE_BUFSIZE", 60);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user