Serial interface for IOv2

This commit is contained in:
px4dev
2013-04-28 18:14:46 -07:00
parent 8f7200e011
commit e67022f874
8 changed files with 249 additions and 45 deletions
+11 -8
View File
@@ -142,7 +142,7 @@ user_start(int argc, char *argv[])
LED_BLUE(false);
LED_SAFETY(false);
/* turn on servo power */
/* turn on servo power (if supported) */
POWER_SERVO(true);
/* start the safety switch handler */
@@ -154,13 +154,11 @@ user_start(int argc, char *argv[])
/* initialise the control inputs */
controls_init();
#ifdef INTERFACE_I2C
/* start the i2c handler */
i2c_init();
#endif
#ifdef INTERFACE_SERIAL
/* start the serial interface */
#endif
/* start the FMU interface */
interface_init();
/* add a performance counter for the interface */
perf_counter_t interface_perf = perf_alloc(PC_ELAPSED, "interface");
/* add a performance counter for mixing */
perf_counter_t mixer_perf = perf_alloc(PC_ELAPSED, "mix");
@@ -203,6 +201,11 @@ user_start(int argc, char *argv[])
/* track the rate at which the loop is running */
perf_count(loop_perf);
/* kick the interface */
perf_begin(interface_perf);
interface_tick();
perf_end(interface_perf);
/* kick the mixer */
perf_begin(mixer_perf);
mixer_tick();