mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 14:57: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:
@@ -395,7 +395,7 @@ CameraTrigger::test()
|
||||
cmd.param5 = 1.0f;
|
||||
|
||||
orb_advert_t pub;
|
||||
pub = orb_advertise(ORB_ID(vehicle_command), &cmd);
|
||||
pub = orb_advertise_queue(ORB_ID(vehicle_command), &cmd, vehicle_command_s::ORB_QUEUE_LENGTH);
|
||||
(void)orb_unadvertise(pub);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user