mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 09:33:59 -03:00
Replay: improved log rate detection
This commit is contained in:
parent
9da3b8db60
commit
315d3854db
@ -539,6 +539,9 @@ bool Replay::find_log_info(struct log_information &info)
|
|||||||
if (streq(type, "IMT") && strcmp(clock_source, "IMT") != 0) {
|
if (streq(type, "IMT") && strcmp(clock_source, "IMT") != 0) {
|
||||||
strcpy(clock_source, "IMT");
|
strcpy(clock_source, "IMT");
|
||||||
hal.console->printf("Changing clock source to %s\n", clock_source);
|
hal.console->printf("Changing clock source to %s\n", clock_source);
|
||||||
|
samplecount = 0;
|
||||||
|
prev = 0;
|
||||||
|
smallest_delta = 0;
|
||||||
}
|
}
|
||||||
if (streq(type, clock_source)) {
|
if (streq(type, clock_source)) {
|
||||||
if (prev == 0) {
|
if (prev == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user