final angle

This commit is contained in:
acki
2025-10-15 16:34:53 +02:00
parent 3081bdb2b7
commit b00db251be

View File

@@ -252,7 +252,7 @@ namespace ModelecGUI
modelec_interfaces::msg::OdometryGoTo msg;
msg.x = Modelec::mapValue(event->pos().x(), 0, width(), 0, 3000);
msg.y = 2000 - Modelec::mapValue(event->pos().y(), 0, height(), 0, 2000);
msg.theta = atan2(msg.y, msg.x);
msg.theta = atan2(-msg.y, msg.x);
msg.close = true;
if (show_obstacle_)
{