mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Increased logging to 200 Hz in F330 startup for v2, allowed to set up to 333 Hz update rate in IO driver for v2 link
This commit is contained in:
parent
66d294b5bf
commit
083cc60acb
@ -108,7 +108,7 @@ then
|
||||
fi
|
||||
else
|
||||
px4io limit 400
|
||||
sdlog2 start -r 100 -a -b 16
|
||||
sdlog2 start -r 200 -a -b 16
|
||||
if rgbled start
|
||||
then
|
||||
#rgbled systemstate
|
||||
|
||||
@ -1628,8 +1628,8 @@ int
|
||||
PX4IO::set_update_rate(int rate)
|
||||
{
|
||||
int interval_ms = 1000 / rate;
|
||||
if (interval_ms < 5) {
|
||||
interval_ms = 5;
|
||||
if (interval_ms < 3) {
|
||||
interval_ms = 3;
|
||||
warnx("update rate too high, limiting interval to %d ms (%d Hz).", interval_ms, 1000 / interval_ms);
|
||||
}
|
||||
|
||||
@ -1956,7 +1956,7 @@ px4io_main(int argc, char *argv[])
|
||||
if ((argc > 2)) {
|
||||
g_dev->set_update_rate(atoi(argv[2]));
|
||||
} else {
|
||||
errx(1, "missing argument (50 - 200 Hz)");
|
||||
errx(1, "missing argument (50 - 400 Hz)");
|
||||
return 1;
|
||||
}
|
||||
exit(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user