mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 21:03:34 +08:00
Fixed incorrect timestamps
This commit is contained in:
committed by
Lorenz Meier
parent
a2471fb539
commit
dce1dda871
@@ -234,6 +234,7 @@ ObstacleAvoidance::_publishAvoidanceDesiredWaypoint()
|
||||
void ObstacleAvoidance::_publishVehicleCmdDoLoiter()
|
||||
{
|
||||
vehicle_command_s command{};
|
||||
command.timestamp = hrt_absolute_time();
|
||||
command.command = vehicle_command_s::VEHICLE_CMD_DO_SET_MODE;
|
||||
command.param1 = (float)1; // base mode
|
||||
command.param3 = (float)0; // sub mode
|
||||
|
||||
Reference in New Issue
Block a user