mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
mavlink_command_sender: use const ref
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user