mavlink_command_sender: use const ref

This commit is contained in:
Julian Oes
2017-07-06 15:05:55 +02:00
committed by Lorenz Meier
parent 893b7b5d46
commit 1576094d9f
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ MavlinkCommandSender::~MavlinkCommandSender()
px4_sem_destroy(&_lock);
}
int MavlinkCommandSender::handle_vehicle_command(struct vehicle_command_s &command, mavlink_channel_t channel)
int MavlinkCommandSender::handle_vehicle_command(const struct vehicle_command_s &command, mavlink_channel_t channel)
{
assert(channel < MAX_MAVLINK_CHANNEL);

View File

@@ -69,7 +69,7 @@ public:
* thread-safe
* @return 0 on success, <0 otherwise
*/
int handle_vehicle_command(struct vehicle_command_s &command, mavlink_channel_t channel);
int handle_vehicle_command(const struct vehicle_command_s &command, mavlink_channel_t channel);
/**
* Check timeouts to verify if an commands need retransmission.