Skip to content
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

Implement Apogee Prediction #47

Merged
merged 142 commits into from
Nov 1, 2024
Merged

Implement Apogee Prediction #47

merged 142 commits into from
Nov 1, 2024

Conversation

harshil21
Copy link
Member

@harshil21 harshil21 commented Oct 17, 2024

Major changes:

  • Implementation of vertical velocity using rotated acceleration in the earth's frame of reference. This is more accurate than our current magnitude approach. However it is still slightly inaccurate during free fall by about 2-5m/s (just eyeballing it v/s altitude).

  • Apogee Prediction using curve fitting. This runs only for the duration of CoastPhase. We converge to true apogee with an accuracy of +/- 10m within 5 seconds of coasting.

  • The apogee prediction process runs only every 10 packets.

WIP:

  • Tests (verify that everything works as expected)
  • multiprocessing
  • Review comments
  • plot velocity calculated from rotated frame vs speed from accel

@harshil21 harshil21 added the enhancement New feature or request label Oct 17, 2024
airbrakes/state.py Outdated Show resolved Hide resolved
@wlsanderson
Copy link
Contributor

I know we purposely took out the airbrakes extension from the update() in coast phase, but I just added it back just so the test passes lol. We will obviously go back and change things once we do the control logic

JacksonElia and others added 2 commits October 31, 2024 16:02
…ed-better-rotation

Use `scipy` for rotations, improve performance of time differences by ~20%
airbrakes/state.py Outdated Show resolved Hide resolved
Copy link
Member Author

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

LGTM. Who wants the honors of merging?

@JacksonElia
Copy link
Member

I do
u gotta approve it

@JacksonElia JacksonElia merged commit 3bdcfa2 into main Nov 1, 2024
3 checks passed
@JacksonElia JacksonElia deleted the apogee-pred branch November 1, 2024 04:08
@harshil21 harshil21 mentioned this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants