mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 00:33:35 +08:00
Add support to new fields in command_ack
This commit is contained in:
committed by
Lorenz Meier
parent
d640d1aaf1
commit
4462869432
@@ -536,8 +536,13 @@ pthread_addr_t UavcanServers::run(pthread_addr_t)
|
||||
// Acknowledge the received command
|
||||
struct vehicle_command_ack_s ack = {
|
||||
.timestamp = 0,
|
||||
.result_param2 = 0,
|
||||
.command = cmd.command,
|
||||
.result = cmd_ack_result
|
||||
.result = cmd_ack_result,
|
||||
.from_external = 0,
|
||||
.result_param1 = 0,
|
||||
.target_system = cmd.source_system,
|
||||
.target_component = cmd.source_component
|
||||
};
|
||||
|
||||
if (_command_ack_pub == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user