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:
Lorenz Meier 2013-08-11 18:42:20 +02:00
parent 66d294b5bf
commit 083cc60acb
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);