-
Notifications
You must be signed in to change notification settings - Fork 8
Make GPS move over time #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
will need to go to the bay, and use pi + pixhawk
|
couldn't test with pi + pixhawk, was throwing many errors |
| ) | ||
|
|
||
| # If we're close enough to the waypoint, consider it reached | ||
| if distance_to_waypoint < 1.0: |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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)
updated position emulator to move gps over time
default speed of 5 m/s