Skip to content

Commit

Permalink
Standardize method definition newlines in mavlink_receiver.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsauder authored and dagar committed Mar 2, 2019
1 parent dc50a56 commit d42bb01
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 = {};
Expand All @@ -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;

Expand All @@ -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 = {};
Expand Down Expand Up @@ -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 = {};
Expand All @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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 = {};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d42bb01

Please sign in to comment.