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-08 11:52:23 +02:00
committed by Lorenz Meier
parent d64b7706f5
commit 9854fc0d84
8 changed files with 18 additions and 1 deletions
+2
View File
@@ -389,6 +389,7 @@ int sdlog2_main(int argc, char *argv[])
cmd.param1 = -1;
cmd.param2 = -1;
cmd.param3 = 1;
cmd.timestamp = hrt_absolute_time();
orb_advertise(ORB_ID(vehicle_command), &cmd);
return 0;
}
@@ -399,6 +400,7 @@ int sdlog2_main(int argc, char *argv[])
cmd.param1 = -1;
cmd.param2 = -1;
cmd.param3 = 2;
cmd.timestamp = hrt_absolute_time();
orb_advertise(ORB_ID(vehicle_command), &cmd);
return 0;
}