mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:13:34 +08:00
unittests: SF0x parse test improvements
This commit is contained in:
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
for (unsigned l = 0; l < sizeof(lines) / sizeof(lines[0]); l++) {
|
for (unsigned l = 0; l < sizeof(lines) / sizeof(lines[0]); l++) {
|
||||||
|
|
||||||
printf("\n%s", _linebuf);
|
//printf("\n%s", _linebuf);
|
||||||
|
|
||||||
int parse_ret;
|
int parse_ret;
|
||||||
|
|
||||||
@@ -51,11 +51,11 @@ int main(int argc, char *argv[])
|
|||||||
parse_ret = sf0x_parser(lines[l][i], _parserbuf, &_parsebuf_index, &state, &dist_m);
|
parse_ret = sf0x_parser(lines[l][i], _parserbuf, &_parsebuf_index, &state, &dist_m);
|
||||||
|
|
||||||
if (parse_ret == 0) {
|
if (parse_ret == 0) {
|
||||||
printf("\nparsed: %f %s\n", dist_m, (parse_ret == 0) ? "OK" : "");
|
//printf("\nparsed: %f %s\n", dist_m, (parse_ret == 0) ? "OK" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s", lines[l]);
|
//printf("%s", lines[l]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user