Skip to content

Drive Testing and Calculate Vehicle Speed Off eRPM#504

Merged
dchansen06 merged 38 commits into
mainfrom
eRPM-to-speed
Jul 5, 2026
Merged

Drive Testing and Calculate Vehicle Speed Off eRPM#504
dchansen06 merged 38 commits into
mainfrom
eRPM-to-speed

Conversation

@kzwicker

@kzwicker kzwicker commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

ECU Calculate Vehicle Speed

Problem and Scope

At the moment, we don't do that. Now, we will do that.

Description

Pulls eRPM data from the DTI inverter and calculates speed from there. Also uses the "is still" data to determine if the car is moving.

Also, fixes inverter disabling logic by using the correct offsets.

Lots of other fixes to finalize firmware

Also fixes dash panel lights to not trigger red car

Gotchas and Limitations

No regen yet

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Passes tech and ran in endurance

Larger Impact

Winning Gaucho Racing

Additional Context and Ticket

Finishes ECU

@kzwicker kzwicker requested a review from dchansen06 as a code owner June 2, 2026 04:43
@dchansen06 dchansen06 changed the title Calculate vehicle speed Calculate Vehicle Speed Off eRPM Jun 2, 2026
@dchansen06 dchansen06 added Enhancement New feature or request 2 PRIORITY Important and a priority, but less than URGENT Small Fry Something that is small, could include bug fixes or smaller changes Peripheral Related to or involving a peripheral including abstractions Boards Related to or involving any physical boards Bug Something is doing a thing but doing it wrong or otherwise incorrectly labels Jun 2, 2026
@dchansen06 dchansen06 added this to the GR26 milestone Jun 2, 2026
@dchansen06 dchansen06 added 1 URGENT Urgent issue that needs a quick action and resolution and removed 2 PRIORITY Important and a priority, but less than URGENT labels Jun 2, 2026

@dchansen06 dchansen06 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, but lets test on car before merging

@SlowThomas

SlowThomas commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Note that the pr description is changed.

@dchansen06 dchansen06 force-pushed the eRPM-to-speed branch 2 times, most recently from 089bde1 to f1b213a Compare June 6, 2026 19:41
@dchansen06 dchansen06 changed the title Calculate Vehicle Speed Off eRPM Calculate Vehicle Speed Off eRPM and Regen Jun 7, 2026
@dchansen06 dchansen06 changed the title Calculate Vehicle Speed Off eRPM and Regen Regen Testing and Calculate Vehicle Speed Off eRPM Jun 7, 2026
@dchansen06 dchansen06 force-pushed the eRPM-to-speed branch 3 times, most recently from 065a817 to d669ab2 Compare June 7, 2026 07:51

@dchansen06 dchansen06 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix PR description/title
  • Pass CI/CD for the unit tests
  • Brief documentation Yeah...
  • Go back to power levels instead of universal 325 A by git revert

kzwicker and others added 2 commits June 30, 2026 02:55
Co-authored-by: Thomas Xu <thomasxu070224@gmail.com>
github-actions Bot and others added 23 commits June 30, 2026 02:55
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Copied from `dfb8fbc9f0e1928c02f05b7379796cb03bb8190f`

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Co-authored-by: kzwicker <kzwicker@users.noreply.github.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
```c
float pressure_psi = ((float)adc_counts - 654.09f) * 5000.0f / 2614.73f;
```

https://discord.com/channels/@me/1339848701379612764/1514824425336340532
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 changed the title Regen Testing and Calculate Vehicle Speed Off eRPM Drive Testing and Calculate Vehicle Speed Off eRPM Jul 5, 2026
To be honest the state ticks test needs to be nuked and rewritten for next year

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 merged commit d5cb13c into main Jul 5, 2026
33 checks passed
@dchansen06 dchansen06 deleted the eRPM-to-speed branch July 5, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 URGENT Urgent issue that needs a quick action and resolution Boards Related to or involving any physical boards Bug Something is doing a thing but doing it wrong or otherwise incorrectly Enhancement New feature or request Peripheral Related to or involving a peripheral including abstractions Small Fry Something that is small, could include bug fixes or smaller changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants