summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-10-14 21:21:16 +0200
committerSebastian Reichel <sre@ring0.de>2012-10-14 21:21:16 +0200
commitae772f26f9e3237aaa352012298bb8c2f62058b7 (patch)
treee033122a3e0fae793b5352032dd64bf884a126b3
parented2fe2b75a410e20679de43ed787a05e4dd99696 (diff)
downloadmicrocopterd-ae772f26f9e3237aaa352012298bb8c2f62058b7.tar.bz2
add debug output for sensors
-rw-r--r--main.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.vala b/main.vala
index f619642..98a1eea 100644
--- a/main.vala
+++ b/main.vala
@@ -32,6 +32,8 @@ bool loop() {
accelerometer.get_data(out ax, out ay, out az);
compass.get_data(out mx, out my, out mz);
+ log("MainLoop", LogLevelFlags.LEVEL_DEBUG, @"sensors: GYRO: $gx $gy $gz, ACCEL: $ax $ay $az, COMPASS: $mx $my $mz");
+
/* calculate kinematics (TODO: calculate time diff) */
kinematics.update(gx, gy, gz, ax, ay, az, mx, my, mz, 0.1);