From d42bb01e0ca83813f1d8a96576c6fb9244bb7a19 Mon Sep 17 00:00:00 2001 From: mcsauder Date: Thu, 28 Feb 2019 09:51:25 -0700 Subject: [PATCH] Standardize method definition newlines in mavlink_receiver.cpp. --- src/modules/mavlink/mavlink_receiver.cpp | 36 ++++++++++++++++-------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 4350641df928..1d95f3a8a3e1 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -108,7 +108,8 @@ MavlinkReceiver::~MavlinkReceiver() orb_unsubscribe(_vehicle_attitude_sub); } -void MavlinkReceiver::acknowledge(uint8_t sysid, uint8_t compid, uint16_t command, uint8_t result) +void +MavlinkReceiver::acknowledge(uint8_t sysid, uint8_t compid, uint16_t command, uint8_t result) { vehicle_command_ack_s command_ack = {}; command_ack.timestamp = hrt_absolute_time(); @@ -2134,7 +2135,8 @@ MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_follow_target(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_follow_target(mavlink_message_t *msg) { mavlink_follow_target_t follow_target_msg; follow_target_s follow_target_topic = {}; @@ -2155,7 +2157,8 @@ void MavlinkReceiver::handle_message_follow_target(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_landing_target(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_landing_target(mavlink_message_t *msg) { mavlink_landing_target_t landing_target; @@ -2178,7 +2181,8 @@ void MavlinkReceiver::handle_message_landing_target(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_adsb_vehicle(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_adsb_vehicle(mavlink_message_t *msg) { mavlink_adsb_vehicle_t adsb; transponder_report_s t = {}; @@ -2224,7 +2228,8 @@ void MavlinkReceiver::handle_message_adsb_vehicle(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_collision(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_collision(mavlink_message_t *msg) { mavlink_collision_t collision; collision_report_s t = {}; @@ -2248,7 +2253,8 @@ void MavlinkReceiver::handle_message_collision(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_gps_rtcm_data(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_gps_rtcm_data(mavlink_message_t *msg) { mavlink_gps_rtcm_data_t gps_rtcm_data_msg = {}; mavlink_msg_gps_rtcm_data_decode(msg, &gps_rtcm_data_msg); @@ -2442,7 +2448,8 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_named_value_float(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_named_value_float(mavlink_message_t *msg) { mavlink_named_value_float_t debug_msg; debug_key_value_s debug_topic; @@ -2462,7 +2469,8 @@ void MavlinkReceiver::handle_message_named_value_float(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_debug(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_debug(mavlink_message_t *msg) { mavlink_debug_t debug_msg; debug_value_s debug_topic; @@ -2481,7 +2489,8 @@ void MavlinkReceiver::handle_message_debug(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_debug_vect(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_debug_vect(mavlink_message_t *msg) { mavlink_debug_vect_t debug_msg; debug_vect_s debug_topic; @@ -2503,7 +2512,8 @@ void MavlinkReceiver::handle_message_debug_vect(mavlink_message_t *msg) } } -void MavlinkReceiver::handle_message_debug_float_array(mavlink_message_t *msg) +void +MavlinkReceiver::handle_message_debug_float_array(mavlink_message_t *msg) { mavlink_debug_float_array_t debug_msg; debug_array_s debug_topic = {}; @@ -2697,12 +2707,14 @@ MavlinkReceiver::receive_thread(void *arg) return nullptr; } -void MavlinkReceiver::print_status() +void +MavlinkReceiver::print_status() { } -void *MavlinkReceiver::start_helper(void *context) +void * +MavlinkReceiver::start_helper(void *context) { MavlinkReceiver *rcv = new MavlinkReceiver((Mavlink *)context);