-
Notifications
You must be signed in to change notification settings - Fork 3
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
BrianFrankPalmer
wants to merge
35
commits into
mockendon:master
Choose a base branch
from
BrianFrankPalmer:mockendonUpdates
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mockendon updates #3
BrianFrankPalmer
wants to merge
35
commits into
mockendon:master
from
BrianFrankPalmer:mockendonUpdates
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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.
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.
- 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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This improves the speed data by comparing each successive update rather than every other one. Ignore all the file deletions.
Thanks,
Brian