set position values to nan when sending velocity setpoint

This commit is contained in:
Sem van der Hoeven
2023-05-15 15:59:16 +02:00
parent d50758cb73
commit 10ae3f3e3b

View File

@@ -274,6 +274,10 @@ private:
msg.velocity[0] = velocity[0];
msg.velocity[1] = velocity[1];
msg.velocity[2] = D_SPEED(velocity[2]);
for (int i = 0; i < 3; i++)
{
msg.position[i] = NAN;
}
publish_trajectory_setpoint(msg);
}