Skip to content

Mockendon updates #3

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

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

BrianFrankPalmer
Copy link

This improves the speed data by comparing each successive update rather than every other one. Ignore all the file deletions.
Thanks,
Brian

Initial commit of my version of mokendon's awsome OpenGradeSim.  This is a work in progress.
I've aded:
- classes for menus, OLED display, and buttons.
- auto-leveling of control unit
- ability to change wheel size
- ability to change weight settings at anytime
- flash storage of user settings
- manual grade mode
- PID motor control
- bi-color LED status light
Code cleanup, added a debug mode to menu that can be switched on and off, now forces auto-leveleling when entering smart trainer mode if needed, converted blocking delay in refreshSpeedandPower to use timer, uncommented writing of user-settings.
display ble scanning msg just once
- Pressing an up or down button flips to manual mode immediately. Pressing the select button switches back to smart trainer mode.
- fixed bugs in setNumber and setDouble. Less is more.
-  misc refactoring
bug fix preventing displaying negative grades.
fixing up down button defines and bug in pressAnyButtonToExit
sorting out trainer leveling
Added second pid setting used when trainter is close to target. This really sorted it the jittering issue.
updated readme and some other misc;
 Combined the trainer leveling and smartTrainer mode code into gradeSim method.
turned off debug mode.
update moveActuator to not calculate pwm when target grade is achieved.
- Fixed the issue with peddling vibration being constantly injected into the control loop. It now locks the targetGrade until it is changed by manual input or the smart trainer.
- Changed trainerIncline from an int to a double for finer grain control.
- Debug mode now recieves innput from serial monitor. + and - modifies target grade by .25 degress.
- now rounds targetgrade input to an int.
updting comments mostly.
Fixed the reset system issue by updating the pin # from 19 to 20.
some other minor refactoring and comments.
updated readme
updated readme
… case.

Added Eagle PCB files.
EAGLE Schematic and PCB Screenshots.
Added 3d models of Controller Case and Bike Mount
added eagle motor controller files
took off the 1% change in incline limiter.
now adust the P PID param dynamically. Allows for faster seeking of target grade when error is large.
now subscribes the >Cable device battery service and displays it on the Grad Sim display.
- Gradsim mode: Improved handling of ble service data in first line.
Version 1.04
- converted Matts getBLEServices() to non blocking code. This allows the UI to stay active while waiting for ble to connect to the trainer.
-Now stores the UUID of thge cable device so we scan reconnect with BLE.scanForUuid
-improved formatting of decimal numbers.
-added battery level of Cable Device to UI
version 1.05
-Added Set Unit option to display in imperial or metric. Affects speed and weight.
- improved menu handling of non-numeric menu option.
- added option to adjust "Manual Step %". This controls the step size when in GradeSim manual mode.
This controls how sensitive the hunt and seek grade routine is.  Default is .05%.
- added min/max range checking for gui input
-
This reverts commit bc20cb5.
lets try this again. v 1.05
  - Fixed a bug when reading speed updates that reduced the resolution by half.
  - Fixed a bug not allowing Speed to return to zero.
  - Switched to using BLE.EventHandler
  - Added disconnect / reconnect handling
update readme
update readme
v 1.07
Added new Level/Ride option to the main menu. This allows quick override of the user prefs to force a quick leveling cycle.
Some misc refactoring for readability.
BrianFrankPalmer and others added 5 commits May 14, 2021 20:40
added debug options:
P = increase power
p = decrease power
S = increase speed
s = decrease speed

Other misc refactoring
moving stuff around
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.

2 participants