diff --git a/AntennaTracker/AntennaTracker.cpp b/AntennaTracker/AntennaTracker.cpp index a236cbc64b..580a486d23 100644 --- a/AntennaTracker/AntennaTracker.cpp +++ b/AntennaTracker/AntennaTracker.cpp @@ -107,7 +107,7 @@ void Tracker::one_second_loop() one_second_counter++; if (one_second_counter >= 60) { - if(g.compass_enabled) { + if (g.compass_enabled) { compass.save_offsets(); } one_second_counter = 0; diff --git a/AntennaTracker/sensors.cpp b/AntennaTracker/sensors.cpp index 9d8b796ffd..63a0f065fa 100644 --- a/AntennaTracker/sensors.cpp +++ b/AntennaTracker/sensors.cpp @@ -82,7 +82,7 @@ void Tracker::accel_cal_update() { } ins.acal_update(); float trim_roll, trim_pitch; - if(ins.get_new_trim(trim_roll, trim_pitch)) { + if (ins.get_new_trim(trim_roll, trim_pitch)) { ahrs.set_trim(Vector3f(trim_roll, trim_pitch, 0)); } } @@ -100,7 +100,7 @@ void Tracker::update_GPS(void) gps.status() >= AP_GPS::GPS_OK_FIX_3D) { last_gps_msg_ms = gps.last_message_time_ms(); - if(ground_start_count > 1) { + if (ground_start_count > 1) { ground_start_count--; } else if (ground_start_count == 1) { // We countdown N number of good GPS fixes diff --git a/AntennaTracker/servos.cpp b/AntennaTracker/servos.cpp index 9c344f5638..89d5871616 100644 --- a/AntennaTracker/servos.cpp +++ b/AntennaTracker/servos.cpp @@ -214,7 +214,7 @@ void Tracker::update_yaw_position_servo() channel_yaw.set_servo_out(new_servo_out); - if(yaw_servo_out_filt_init){ + if (yaw_servo_out_filt_init) { yaw_servo_out_filt.apply(new_servo_out, G_Dt); } else { yaw_servo_out_filt.reset(new_servo_out); diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index 20ead4d2f6..96aef6eefe 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -187,7 +187,7 @@ void Tracker::prepare_servos() void Tracker::set_mode(enum ControlMode mode) { - if(control_mode == mode) { + if (control_mode == mode) { // don't switch modes if we are already in the correct mode. return; }