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

Implement alternative pedal-to-torque transfer functions #248

Open
jr1221 opened this issue Dec 20, 2024 · 2 comments
Open

Implement alternative pedal-to-torque transfer functions #248

jr1221 opened this issue Dec 20, 2024 · 2 comments

Comments

@jr1221
Copy link
Contributor

jr1221 commented Dec 20, 2024

Description

Right now we have 4 types of transfer functions

  • Derated (UNTESTED): for pit mode, to slow down torque as we get close to speed limit
  • linear: for acceleration and endurance, simple 0-100 depression is 0-100 current
  • Linear w/ regen accel: Part of the pedal is regen, then deadzone, then linear acceleration
  • Linear w/ regen brake (UNTESTED): the brake pedal influences braking (deprecated)

The linear accel parts may benefit from a better curve.

Acceptance Criteria

  • New curve is well documented with constants extracted, as well as a plot showing current versus pedal %
  • New math is unit tested to best of ability
  • New curve is disabled by default, but commented out code replaces linear_accel_to_torque w/ exp

Proposed Solution

Implement an exponential or at least a slower pickup curve to make the pedal less sensitive.

@jr1221
Copy link
Contributor Author

jr1221 commented Dec 20, 2024

Also implement max torque and kt constant with help from Ethan Markow's team.

@jr1221
Copy link
Contributor Author

jr1221 commented Dec 20, 2024

Also implement new mph math using wheel diameter, gear ratio (Abby Speckhals can help w/ that).

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

No branches or pull requests

1 participant