aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-17 15:29:31 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-17 15:29:31 +0100
commit8f8e30052bc6fb9a833b53570e8e836ea6686f1f (patch)
treee1b75b27fdb3c4a8942ead12a17b054d36cb0a7b /apps/px4io
parent6bd18e46bb3b250213bb64d9b0da2e71ddc912ab (diff)
parentcaa11f0bbb7f30679c5c01a64e1d0f6d8627db9d (diff)
downloadpx4-firmware-8f8e30052bc6fb9a833b53570e8e836ea6686f1f.tar.gz
px4-firmware-8f8e30052bc6fb9a833b53570e8e836ea6686f1f.tar.bz2
px4-firmware-8f8e30052bc6fb9a833b53570e8e836ea6686f1f.zip
Merged
Diffstat (limited to 'apps/px4io')
-rw-r--r--apps/px4io/mixer.cpp4
-rw-r--r--apps/px4io/px4io.c5
-rw-r--r--apps/px4io/px4io.h2
3 files changed, 6 insertions, 5 deletions
diff --git a/apps/px4io/mixer.cpp b/apps/px4io/mixer.cpp
index 740d8aeb0..93bd4470f 100644
--- a/apps/px4io/mixer.cpp
+++ b/apps/px4io/mixer.cpp
@@ -195,7 +195,7 @@ mixer_tick(void)
rc_channel_data[THROTTLE] = 1000;
}
- // lib_lowprintf("Tmin: %d Ttrim: %d Tmax: %d T: %d \n",
+ // lowsyslog("Tmin: %d Ttrim: %d Tmax: %d T: %d \n",
// (int)(system_state.rc_min[THROTTLE]), (int)(system_state.rc_trim[THROTTLE]),
// (int)(system_state.rc_max[THROTTLE]), (int)(rc_channel_data[THROTTLE]));
@@ -207,7 +207,7 @@ mixer_tick(void)
// XXX builtin failsafe would activate here
control_count = 0;
}
- //lib_lowprintf("R: %d P: %d Y: %d T: %d \n", control_values[0], control_values[1], control_values[2], control_values[3]);
+ //lowsyslog("R: %d P: %d Y: %d T: %d \n", control_values[0], control_values[1], control_values[2], control_values[3]);
/* this is for multicopters, etc. where manual override does not make sense */
} else {
diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c
index e50022a0c..2683ff1f6 100644
--- a/apps/px4io/px4io.c
+++ b/apps/px4io/px4io.c
@@ -143,7 +143,7 @@ int user_start(int argc, char *argv[])
hrt_call_every(&serial_dma_call, 1000, 1000, (hrt_callout)stm32_serial_dma_poll, NULL);
/* print some startup info */
- debug("\nPX4IO: starting\n");
+ lowsyslog("\nPX4IO: starting\n");
/* default all the LEDs to off while we start */
LED_AMBER(false);
@@ -167,7 +167,7 @@ int user_start(int argc, char *argv[])
NULL);
struct mallinfo minfo = mallinfo();
- debug("free %u largest %u\n", minfo.mxordblk, minfo.fordblks);
+ lowsyslog("free %u largest %u\n", minfo.mxordblk, minfo.fordblks);
debug("debug_level=%u\n", (unsigned)debug_level);
@@ -202,3 +202,4 @@ int user_start(int argc, char *argv[])
}
}
}
+
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h
index 9c5989df7..6944776a9 100644
--- a/apps/px4io/px4io.h
+++ b/apps/px4io/px4io.h
@@ -58,7 +58,7 @@
#ifdef DEBUG
# include <debug.h>
-# define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args)
+# define debug(fmt, args...) lowsyslog(fmt "\n", ##args)
#else
# define debug(fmt, args...) do {} while(0)
#endif