mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
vehicle_imu:VehicleIMU Fix style issues
This commit is contained in:
committed by
Daniel Agar
parent
d437379142
commit
323dd389fe
@@ -282,7 +282,7 @@ void VehicleIMU::Run()
|
|||||||
|
|
||||||
// rotate sensor clip counts into vehicle body frame
|
// rotate sensor clip counts into vehicle body frame
|
||||||
const Vector3f clipping{_accel_calibration.rotation() *
|
const Vector3f clipping{_accel_calibration.rotation() *
|
||||||
Vector3f{(float)accel.clip_counter[0], (float)accel.clip_counter[1], (float)accel.clip_counter[2]}};
|
Vector3f{(float)accel.clip_counter[0], (float)accel.clip_counter[1], (float)accel.clip_counter[2]}};
|
||||||
|
|
||||||
// round to get reasonble clip counts per axis (after board rotation)
|
// round to get reasonble clip counts per axis (after board rotation)
|
||||||
const uint8_t clip_x = roundf(fabsf(clipping(0)));
|
const uint8_t clip_x = roundf(fabsf(clipping(0)));
|
||||||
|
|||||||
Reference in New Issue
Block a user