From 147606a399c5ccd1eb422d7a08b19b650613d25f Mon Sep 17 00:00:00 2001 From: blah Date: Wed, 20 Jan 2016 12:40:16 -0800 Subject: [PATCH] moved function defenition --- src/modules/uavcan/uavcan_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/uavcan/uavcan_main.cpp b/src/modules/uavcan/uavcan_main.cpp index f81557a547..dd7bcdc9d3 100644 --- a/src/modules/uavcan/uavcan_main.cpp +++ b/src/modules/uavcan/uavcan_main.cpp @@ -1222,6 +1222,9 @@ void UavcanNode::shrink() (void)pthread_mutex_unlock(&_node_mutex); } +void UavcanNode::hardpoint_controller_set(uint8_t hardpoint_id, uint16_t command){ + _hardpoint_controller.set_command(hardpoint_id, command); +} /* * App entry point */ @@ -1233,10 +1236,6 @@ static void print_usage() extern "C" __EXPORT int uavcan_main(int argc, char *argv[]); -void UavcanNode::hardpoint_controller_set(uint8_t hardpoint_id, uint16_t command){ - _hardpoint_controller.set_command(hardpoint_id, command); -} - int uavcan_main(int argc, char *argv[]) { if (argc < 2) {