diff options
author | Anton Babushkin <rk3dov@gmail.com> | 2013-04-25 23:59:46 +0400 |
---|---|---|
committer | Anton Babushkin <rk3dov@gmail.com> | 2013-04-26 00:00:25 +0400 |
commit | e37f471ac4ce52e724b0d89714d9db6e1d16ee8e (patch) | |
tree | 5b87bf36d03e9cf8dd100181b6a8b20d1ccea22a /apps/commander/accelerometer_calibration.h | |
parent | ed9fbbce5946d22ded1519ddec1b5ff6a8f2e511 (diff) | |
download | px4-firmware-e37f471ac4ce52e724b0d89714d9db6e1d16ee8e.tar.gz px4-firmware-e37f471ac4ce52e724b0d89714d9db6e1d16ee8e.tar.bz2 px4-firmware-e37f471ac4ce52e724b0d89714d9db6e1d16ee8e.zip |
6-point accelerometer calibration implemented
Diffstat (limited to 'apps/commander/accelerometer_calibration.h')
-rw-r--r-- | apps/commander/accelerometer_calibration.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/commander/accelerometer_calibration.h b/apps/commander/accelerometer_calibration.h new file mode 100644 index 000000000..acf45b6b6 --- /dev/null +++ b/apps/commander/accelerometer_calibration.h @@ -0,0 +1,19 @@ +/* + * accelerometer_calibration.h + * + * Created on: 25.04.2013 + * Author: ton + */ + +#ifndef ACCELEROMETER_CALIBRATION_H_ +#define ACCELEROMETER_CALIBRATION_H_ + +#include <stdint.h> +#include <uORB/topics/vehicle_status.h> + +void do_accel_calibration(int status_pub, struct vehicle_status_s *status, int mavlink_fd); +int detect_orientation(int mavlink_fd, int sub_sensor_combined); +int mat_invert3(float src[3][3], float dst[3][3]); +int calculate_calibration_values(int16_t accel_raw_ref[6][3], float accel_T[3][3], int16_t accel_offs[3], float g); + +#endif /* ACCELEROMETER_CALIBRATION_H_ */ |