@@ -42,7 +42,7 @@ Mavlink::Mavlink(Board & board)
4242
4343void Mavlink::init (uint32_t baud_rate, uint32_t dev)
4444{
45- system_id_ = 1 ; // = static_cast<uint8_t>(RF_.params_.get_param_int(PARAM_SYSTEM_ID));
45+ system_id_ = 1 ; // = static_cast<uint8_t>(RF_.params_.get_param_int(PARAM_SYSTEM_ID));
4646 board_.serial_init (baud_rate, dev);
4747 initialized_ = true ;
4848}
@@ -218,7 +218,7 @@ void Mavlink::handle_msg_offboard_control(const mavlink_message_t * const msg,
218218}
219219
220220void Mavlink::handle_msg_offboard_control_full (const mavlink_message_t * const msg,
221- CommMessage * message)
221+ CommMessage * message)
222222{
223223 message->type = CommMessageType::MESSAGE_OFFBOARD_CONTROL;
224224 mavlink_offboard_control_full_t ctrl;
@@ -283,8 +283,8 @@ void Mavlink::send_baro(const PressureStruct & baro)
283283 send_message (msg);
284284}
285285
286- void Mavlink::send_command_ack (uint64_t timestamp_us,
287- CommMessageCommand rosflight_cmd, RosflightCmdResponse success)
286+ void Mavlink::send_command_ack (uint64_t timestamp_us, CommMessageCommand rosflight_cmd,
287+ RosflightCmdResponse success)
288288{
289289 (void ) timestamp_us; // unused
290290 mavlink_message_t msg;
@@ -299,10 +299,9 @@ void Mavlink::send_command_ack(uint64_t timestamp_us,
299299void Mavlink::send_diff_pressure (const PressureStruct & p)
300300{
301301
302- float ias = (p.pressure < 0.0 ? -1.0 : 1.0 )* sqrt (fabs (p.pressure ) / (0.5 * 1.225 ));
302+ float ias = (p.pressure < 0.0 ? -1.0 : 1.0 ) * sqrt (fabs (p.pressure ) / (0.5 * 1.225 ));
303303 mavlink_message_t msg;
304- mavlink_msg_diff_pressure_pack (system_id_, compid_, &msg, ias,
305- p.pressure , p.temperature );
304+ mavlink_msg_diff_pressure_pack (system_id_, compid_, &msg, ias, p.pressure , p.temperature );
306305 send_message (msg);
307306}
308307
@@ -318,8 +317,9 @@ void Mavlink::send_heartbeat(uint64_t timestamp_us, bool fixed_wing)
318317void Mavlink::send_imu (const ImuStruct & imu)
319318{
320319 mavlink_message_t msg;
321- mavlink_msg_small_imu_pack (system_id_, compid_, &msg, imu.header .timestamp , imu.accel [0 ], imu.accel [1 ],
322- imu.accel [2 ], imu.gyro [0 ], imu.gyro [1 ], imu.gyro [2 ], imu.temperature );
320+ mavlink_msg_small_imu_pack (system_id_, compid_, &msg, imu.header .timestamp , imu.accel [0 ],
321+ imu.accel [1 ], imu.accel [2 ], imu.gyro [0 ], imu.gyro [1 ], imu.gyro [2 ],
322+ imu.temperature );
323323 send_message (msg, 0 );
324324}
325325
@@ -370,8 +370,7 @@ void Mavlink::send_gnss(const GnssStruct & gnss)
370370 }
371371}
372372
373- void Mavlink::send_log_message (uint64_t timestamp_us, LogSeverity severity,
374- const char * text)
373+ void Mavlink::send_log_message (uint64_t timestamp_us, LogSeverity severity, const char * text)
375374{
376375 (void ) timestamp_us; // unused
377376 MAV_SEVERITY mavlink_severity = MAV_SEVERITY_ENUM_END;
@@ -412,8 +411,8 @@ void Mavlink::send_output_raw(const RcStruct & raw)
412411 send_message (msg);
413412}
414413
415- void Mavlink::send_param_value_int (uint64_t timestamp_us, uint16_t index,
416- const char * const name, int32_t value, uint16_t param_count)
414+ void Mavlink::send_param_value_int (uint64_t timestamp_us, uint16_t index, const char * const name,
415+ int32_t value, uint16_t param_count)
417416{
418417 (void ) timestamp_us; // unused
419418 mavlink_param_union_t param;
@@ -425,8 +424,8 @@ void Mavlink::send_param_value_int(uint64_t timestamp_us, uint16_t index,
425424 send_message (msg);
426425}
427426
428- void Mavlink::send_param_value_float (uint64_t timestamp_us, uint16_t index,
429- const char * const name, float value, uint16_t param_count)
427+ void Mavlink::send_param_value_float (uint64_t timestamp_us, uint16_t index, const char * const name,
428+ float value, uint16_t param_count)
430429{
431430 (void ) timestamp_us; // unused
432431 mavlink_message_t msg;
@@ -458,8 +457,8 @@ void Mavlink::send_sonar(const RangeStruct & range)
458457 send_message (msg);
459458}
460459
461- void Mavlink::send_status (uint64_t timestamp_us, bool armed, bool failsafe,
462- bool rc_override, bool offboard, uint8_t error_code, uint8_t control_mode,
460+ void Mavlink::send_status (uint64_t timestamp_us, bool armed, bool failsafe, bool rc_override,
461+ bool offboard, uint8_t error_code, uint8_t control_mode,
463462 int16_t num_errors, int16_t loop_time_us)
464463{
465464 (void ) timestamp_us; // unused
@@ -485,8 +484,7 @@ void Mavlink::send_version(uint64_t timestamp_us, const char * const version)
485484 send_message (msg);
486485}
487486
488- void Mavlink::send_error_data (uint64_t timestamp_us,
489- const StateManager::BackupData & error_data)
487+ void Mavlink::send_error_data (uint64_t timestamp_us, const StateManager::BackupData & error_data)
490488{
491489 (void ) timestamp_us; // unused
492490 mavlink_message_t msg;
0 commit comments