mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Make some code-style fixes
This commit is contained in:
committed by
Lorenz Meier
parent
a3a855203c
commit
8566cabd76
@@ -23,11 +23,8 @@ set(config_module_list
|
|||||||
drivers/device
|
drivers/device
|
||||||
modules/sensors
|
modules/sensors
|
||||||
platforms/posix/drivers/df_ms5607_wrapper
|
platforms/posix/drivers/df_ms5607_wrapper
|
||||||
<<<<<<< c4eb65862f307de4b679e24f44fab0c565d7c2a3
|
|
||||||
platforms/posix/drivers/df_mpu6050_wrapper
|
platforms/posix/drivers/df_mpu6050_wrapper
|
||||||
=======
|
|
||||||
platforms/posix/drivers/df_ak8963_wrapper
|
platforms/posix/drivers/df_ak8963_wrapper
|
||||||
>>>>>>> Add DF wrapper for AK8963
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# System commands
|
# System commands
|
||||||
@@ -105,4 +102,5 @@ set(config_module_list
|
|||||||
set(config_df_driver_list
|
set(config_df_driver_list
|
||||||
ms5607
|
ms5607
|
||||||
mpu6050
|
mpu6050
|
||||||
|
ak8963
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -288,9 +288,9 @@ int DfAK8963Wrapper::_publish(struct mag_sensor_data &data)
|
|||||||
// apply sensor rotation on the accel measurement
|
// apply sensor rotation on the accel measurement
|
||||||
mag_val = _rotation_matrix * mag_val;
|
mag_val = _rotation_matrix * mag_val;
|
||||||
|
|
||||||
mag_report.x = (mag_val(0) - _mag_calibration.x_offset) * _mag_calibration.x_scale;;
|
mag_report.x = (mag_val(0) - _mag_calibration.x_offset) * _mag_calibration.x_scale;
|
||||||
mag_report.y = (mag_val(1) - _mag_calibration.y_offset) * _mag_calibration.y_scale;;
|
mag_report.y = (mag_val(1) - _mag_calibration.y_offset) * _mag_calibration.y_scale;
|
||||||
mag_report.z = (mag_val(2) - _mag_calibration.z_offset) * _mag_calibration.z_scale;;
|
mag_report.z = (mag_val(2) - _mag_calibration.z_offset) * _mag_calibration.z_scale;
|
||||||
|
|
||||||
|
|
||||||
// TODO: get these right
|
// TODO: get these right
|
||||||
@@ -394,7 +394,7 @@ info()
|
|||||||
|
|
||||||
PX4_DEBUG("state @ %p", g_dev);
|
PX4_DEBUG("state @ %p", g_dev);
|
||||||
|
|
||||||
g_dev->print_calibration();
|
g_dev->print_calibration();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user