clang-format set BreakBeforeBraces to Linux style

- this keeps things consistent with PX4/Firmware astyle
This commit is contained in:
Daniel Agar
2020-06-25 13:23:52 -04:00
parent b96c62ed8b
commit 2927132954
6 changed files with 53 additions and 23 deletions
+4 -2
View File
@@ -5,7 +5,8 @@ ImuDownSampler::ImuDownSampler(float target_dt_sec) : _target_dt{target_dt_sec}
// integrate imu samples until target dt reached
// assumes that dt of the gyroscope is close to the dt of the accelerometer
// returns true if target dt is reached
bool ImuDownSampler::update(const imuSample &imu_sample_new) {
bool ImuDownSampler::update(const imuSample &imu_sample_new)
{
if (_do_reset) {
reset();
}
@@ -50,7 +51,8 @@ bool ImuDownSampler::update(const imuSample &imu_sample_new) {
}
}
void ImuDownSampler::reset() {
void ImuDownSampler::reset()
{
_imu_down_sampled.delta_ang.setZero();
_imu_down_sampled.delta_vel.setZero();
_imu_down_sampled.delta_ang_dt = 0.0f;