Set timestamp with vehicle commands

The vehicle_command uORB messages had the timestamp unset at 0.
This commit is contained in:
Julian Oes
2017-07-04 08:56:33 +02:00
committed by Lorenz Meier
parent d64b7706f5
commit 9854fc0d84
8 changed files with 18 additions and 1 deletions
+2
View File
@@ -495,6 +495,8 @@ int commander_main(int argc, char *argv[])
cmd.param6 = NAN;
cmd.param7 = NAN;
cmd.timestamp = hrt_absolute_time();
orb_advert_t h = orb_advertise_queue(ORB_ID(vehicle_command), &cmd, vehicle_command_s::ORB_QUEUE_LENGTH);
(void)orb_unadvertise(h);