aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware/px4io.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-10-28 15:49:26 +1100
committerLorenz Meier <lm@inf.ethz.ch>2013-10-28 13:10:23 +0100
commit9064f8bf09dd91388b9fd3e66568d086bf1be69b (patch)
tree3038c253f0a406a4d061cc6d2d7df08632ce783a /src/modules/px4iofirmware/px4io.c
parent0b89051be1abd9094ac454053f47d2c2f3d183ae (diff)
downloadpx4-firmware-9064f8bf09dd91388b9fd3e66568d086bf1be69b.tar.gz
px4-firmware-9064f8bf09dd91388b9fd3e66568d086bf1be69b.tar.bz2
px4-firmware-9064f8bf09dd91388b9fd3e66568d086bf1be69b.zip
px4io: fixed the io_reg_{set,get} errors
this fixes the PX4IO state machine to avoid the io errors we were seeing. There are still some open questions with this code, but it now seems to give zero errors, which is an improvement!
Diffstat (limited to 'src/modules/px4iofirmware/px4io.c')
-rw-r--r--src/modules/px4iofirmware/px4io.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/px4iofirmware/px4io.c b/src/modules/px4iofirmware/px4io.c
index e70b3fe88..e28106971 100644
--- a/src/modules/px4iofirmware/px4io.c
+++ b/src/modules/px4iofirmware/px4io.c
@@ -159,9 +159,6 @@ user_start(int argc, char *argv[])
/* 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,11 +200,6 @@ 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();
@@ -218,6 +210,7 @@ user_start(int argc, char *argv[])
controls_tick();
perf_end(controls_perf);
+#if 0
/* check for debug activity */
show_debug_messages();
@@ -234,6 +227,7 @@ user_start(int argc, char *argv[])
(unsigned)minfo.mxordblk);
last_debug_time = hrt_absolute_time();
}
+#endif
}
}