Skip to content

Conversation

@4ppleSA0CE
Copy link

updated position emulator to move gps over time
default speed of 5 m/s

@4ppleSA0CE
Copy link
Author

couldn't test with pi + pixhawk, was throwing many errors

@4ppleSA0CE 4ppleSA0CE marked this pull request as ready for review October 8, 2025 05:59
)

# If we're close enough to the waypoint, consider it reached
if distance_to_waypoint < 1.0:
Copy link
Contributor

@andy24Dai andy24Dai Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tolerance should be a class variable

else:
# Move towards the waypoint
distance_to_move = self.movement_speed * dt
progress = min(distance_to_move / distance_to_waypoint, 1.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the progress calculation should take into account the starting position: progress = dist(start_position, current_position) / dist(start_position, waypoint_position)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants