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

Merge New Field Control features #19

Open
wants to merge 25 commits into
base: dev
Choose a base branch
from
Open

Merge New Field Control features #19

wants to merge 25 commits into from

Conversation

danielkm-ee
Copy link

Updated functions in utils.py

  • Utilities class now stores 'xyz_slopeandambient_field` variables used for calibrating the cage
  • set_field_vector now uses calibration settings stored in the Utilities class
  • set_field_vector no longer runs reading_average on each call, making it much faster and more suitable for running simulations
  • calibration now collects current vs magnetic field data and performs a linear regression on this data
  • reading_average now updates the calibration variables stored in the Utilities class
  • Functions for receiving data from basilisk were added to the Utilities class

Gustavo and others added 13 commits September 5, 2024 13:57
Added constants `MAG_CURRENT_SLOPE` and `WMM_AMBIENT_FIELD` to use as default conversion factors
Added constant `MAX_OUT_CURRENT` used to limit the output current in set_field_vector()
Removed unnecessary arguments to `mag_to_current()` found in the `set_field()` function
Updated default ambient field to one recorded by magnetometer locally
Added a line to `reading_average()` which updates the ambient field variable used by `set_field()`
Replicated a commit originally made by @gcotom
@danielkm-ee danielkm-ee self-assigned this Sep 25, 2024
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.

1 participant