diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-10-14 21:21:16 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-10-14 21:21:16 +0200 |
commit | ae772f26f9e3237aaa352012298bb8c2f62058b7 (patch) | |
tree | e033122a3e0fae793b5352032dd64bf884a126b3 | |
parent | ed2fe2b75a410e20679de43ed787a05e4dd99696 (diff) | |
download | microcopterd-ae772f26f9e3237aaa352012298bb8c2f62058b7.tar.bz2 |
add debug output for sensors
-rw-r--r-- | main.vala | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |