mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 13:23:35 +08:00
vehicle_command topic: use uorb queuing with length 3
Just to make sure we don't lose any messages.
This commit is contained in:
@@ -825,7 +825,7 @@ PX4IO::init()
|
||||
cmd.confirmation = 1;
|
||||
|
||||
/* send command once */
|
||||
orb_advert_t pub = orb_advertise(ORB_ID(vehicle_command), &cmd);
|
||||
orb_advert_t pub = orb_advertise_queue(ORB_ID(vehicle_command), &cmd, vehicle_command_s::ORB_QUEUE_LENGTH);
|
||||
|
||||
/* spin here until IO's state has propagated into the system */
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user