Checkpoint; messages from FMU now make it to IO intact; fix HRT init timing, process more bytes from the serial port, add some simple packet counting.

This commit is contained in:
px4dev
2012-11-03 01:14:25 -07:00
parent b0da90b6db
commit 487597b385
6 changed files with 28 additions and 21 deletions
+6 -2
View File
@@ -71,6 +71,9 @@ int user_start(int argc, char *argv[])
bool heartbeat = false;
bool failsafe = false;
/* configure the high-resolution time/callout interface */
hrt_init();
/* configure the PWM outputs */
up_pwm_servo_init(0xff);
@@ -131,12 +134,13 @@ int user_start(int argc, char *argv[])
/* print some simple status */
if (timers[TIMER_STATUS_PRINT] == 0) {
timers[TIMER_STATUS_PRINT] = 1000;
lib_lowprintf("%c %s | %s | %s | C=%d \r",
lib_lowprintf("%c %s | %s | %s | C=%d F=%d B=%d \r",
cursor[cycle++ & 3],
(system_state.armed ? "ARMED" : "SAFE"),
(system_state.rc_channels ? "RC OK" : "NO RC"),
(system_state.mixer_use_fmu ? "FMU OK" : "NO FMU"),
system_state.rc_channels
system_state.rc_channels,
frame_rx, frame_bad
);
}
}