Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Debug logging, code cleanup, Mapped_Encoder, EEPROM, Encoder/Throttle Calibration, and more #4

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

danapolsUM
Copy link
Contributor

Improvements to wheel.ino and Mapped_Encoder

  • Debugging modes for outputting
  • Arrays to iterate through buttons and LEDs with for loops
  • Simplified logic
  • Removed magic variables
  • Removed unused variables
  • Code now only waits for Serial to start in debugging mode
  • Error avoidance for faulty received CAN messages
  • Mapped_Encoder Library with its own class to make calibration and general usage of encoder and throttle easier
  • Fixed floatMap, tested with math but not yet in code
  • Calibration of encoder/throttle
    • helper functions
    • tolerance and number of trials
    • button combinations to enter calibration
  • EEPROM reading/writing of encoder and throttle values via Preferences.h

Future plans

  • Calibration logic for buttons and LEDs
  • Sending logging data to shore
  • Onshore testing
  • CAN testing
  • Water testing
  • Calibration during crisis testing
  • Hardware issues automatic detection and warning system
  • Calibration integration with display
  • Unit testing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant