diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-05 23:15:03 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-05 23:15:03 +0200 |
commit | df42d0604eb802003379d18041c6444252deb8fc (patch) | |
tree | e38108a2c0fe16d8933c4daf1323bc4a14a14f1e /apps/commander/commander.c | |
parent | 62e18b580cc56ecabf0a586ab64efbcd1c4139ba (diff) | |
download | px4-firmware-df42d0604eb802003379d18041c6444252deb8fc.tar.gz px4-firmware-df42d0604eb802003379d18041c6444252deb8fc.tar.bz2 px4-firmware-df42d0604eb802003379d18041c6444252deb8fc.zip |
Using float precision where already anyway available
Diffstat (limited to 'apps/commander/commander.c')
-rw-r--r-- | apps/commander/commander.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 5438c08f4..2a1ed7532 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -365,7 +365,7 @@ void do_mag_calibration(void) printf("\nFINAL:\nmag min: %d\t%d\t%d\nmag max: %d\t%d\t%d\n", (int)min_avg[0], (int)min_avg[1], (int)min_avg[2], (int)max_avg[0], (int)max_avg[1], (int)max_avg[2]); - int16_t mag_offset[3]; + float mag_offset[3]; mag_offset[0] = (max_avg[0] - min_avg[0])/2; mag_offset[1] = (max_avg[1] - min_avg[1])/2; mag_offset[2] = (max_avg[2] - min_avg[2])/2; |