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

Gas Pedal polling #25

Closed
smit-happens opened this issue Feb 22, 2018 · 3 comments
Closed

Gas Pedal polling #25

smit-happens opened this issue Feb 22, 2018 · 3 comments
Assignees
Labels
pedals priority-high Work on this first size-medium 3-5 days to complete

Comments

@smit-happens
Copy link
Owner

Involves working on the PedalController to use the GasPedal Model to grab the analog value and store it in the model

@smit-happens
Copy link
Owner Author

implemented the model for this, need to work on the controller, StageManager, and main to finish this up

@PatHock
Copy link
Collaborator

PatHock commented Mar 13, 2018

We can either use a lookup table to correlate the linear and logarithmic pots, or we can calculate the pedal position using an equation that represents the "curves" for each potentiometer. The Teensy 3.6 has a floating point unit which will facilitate floating point calculations, making the calculation option practical.

If calculations are to be used (or even the lookup table), we need to choose our potentiometers soon.

PatHock added a commit that referenced this issue Mar 13, 2018
closes #64, #25 Change position of analog Read resolution declaration
@PatHock
Copy link
Collaborator

PatHock commented Mar 13, 2018

EV 3.5.4
All acceleration control signals (between the accelerator pedal and the motor controller) must
have error checking.
For analog acceleration control signals, this error checking must detect open circuit, short to
ground and short to sensor power.

There is no mention of using both linear and logarithmic pots in the Hybrid Rules

PatHock added a commit that referenced this issue Mar 13, 2018
smit-happens added a commit that referenced this issue Mar 15, 2018
smit-happens added a commit that referenced this issue Mar 15, 2018
smit-happens added a commit that referenced this issue Mar 15, 2018
@smit-happens smit-happens added priority-high Work on this first size-medium 3-5 days to complete labels Mar 21, 2018
smit-happens added a commit that referenced this issue Mar 27, 2018
work on #140, fix #136, need to verify #129
fix #70, fix #30, need to verify #25
smit-happens added a commit that referenced this issue Mar 27, 2018
Event flag for CAN set by pedals not transfered to main eventflag
smit-happens added a commit that referenced this issue Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pedals priority-high Work on this first size-medium 3-5 days to complete
Projects
None yet
Development

No branches or pull requests

2 participants