diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-12 18:50:24 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-12 18:50:24 +0200 |
commit | 47c96d3d12a17e00a97da82f26381dfef023a364 (patch) | |
tree | 89e2d33df822482ff80467ffdb76e6498254c692 /apps | |
parent | e4c3a447519544eefb209e734072f892a99d6d3a (diff) | |
download | px4-firmware-47c96d3d12a17e00a97da82f26381dfef023a364.tar.gz px4-firmware-47c96d3d12a17e00a97da82f26381dfef023a364.tar.bz2 px4-firmware-47c96d3d12a17e00a97da82f26381dfef023a364.zip |
Quite flyable state
Diffstat (limited to 'apps')
-rw-r--r-- | apps/commander/commander.c | 2 | ||||
-rw-r--r-- | apps/mavlink/mavlink.c | 4 | ||||
-rw-r--r-- | apps/sensors/sensors.cpp | 2 | ||||
-rw-r--r-- | apps/systemcmds/eeprom/24xxxx_mtd.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index d8e871eb0..d551bffcc 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -1065,7 +1065,7 @@ int commander_thread_main(int argc, char *argv[]) /* create pthreads */ pthread_attr_t command_handling_attr; pthread_attr_init(&command_handling_attr); - pthread_attr_setstacksize(&command_handling_attr, 4096); + pthread_attr_setstacksize(&command_handling_attr, 6000); pthread_create(&command_handling_thread, &command_handling_attr, command_handling_loop, NULL); pthread_attr_t subsystem_info_attr; diff --git a/apps/mavlink/mavlink.c b/apps/mavlink/mavlink.c index 36d444209..81bdf1510 100644 --- a/apps/mavlink/mavlink.c +++ b/apps/mavlink/mavlink.c @@ -1557,8 +1557,8 @@ int mavlink_thread_main(int argc, char *argv[]) set_mavlink_interval_limit(&mavlink_subs, MAVLINK_MSG_ID_NAMED_VALUE_FLOAT, 200); /* 5 Hz / 200 ms */ set_mavlink_interval_limit(&mavlink_subs, MAVLINK_MSG_ID_SERVO_OUTPUT_RAW, 200); - /* 0.2 Hz */ - set_mavlink_interval_limit(&mavlink_subs, MAVLINK_MSG_ID_MANUAL_CONTROL, 5000); + /* 2 Hz */ + set_mavlink_interval_limit(&mavlink_subs, MAVLINK_MSG_ID_MANUAL_CONTROL, 500); } else { /* very low baud rate, limit to 1 Hz / 1000 ms */ set_mavlink_interval_limit(&mavlink_subs, MAVLINK_MSG_ID_RAW_IMU, 1000); diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index baed5ab37..a009ce519 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -958,7 +958,7 @@ Sensors::ppm_poll() _ppm_last_valid = ppm_last_valid_decode; /* Read out values from HRT */ - for (unsigned int i = 0; channel_limit; i++) { + for (unsigned int i = 0; i < channel_limit; i++) { _rc.chan[i].raw = ppm_buffer[i]; /* Set the range to +-, then scale up */ _rc.chan[i].scale = (ppm_buffer[i] - _rc.chan[i].mid) * _rc.chan[i].scaling_factor * 10000; diff --git a/apps/systemcmds/eeprom/24xxxx_mtd.c b/apps/systemcmds/eeprom/24xxxx_mtd.c index c83362ca8..3cded52fa 100644 --- a/apps/systemcmds/eeprom/24xxxx_mtd.c +++ b/apps/systemcmds/eeprom/24xxxx_mtd.c @@ -204,7 +204,7 @@ static int at24c_eraseall(FAR struct at24c_dev_s *priv) while (I2C_TRANSFER(priv->dev, &msgv[0], 1) < 0) { fvdbg("erase stall\n"); - usleep(1000); + usleep(10000); } } |