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

New brake current behavior for 6.05 firmware #7

Closed
wants to merge 1 commit into from

Conversation

surfdado
Copy link
Contributor

Compatible with 6.02 as well

Compatible with 6.02 as well

Signed-off-by: Dado Mista <[email protected]>
}

// Use brake current over certain ERPM to prevent the board skidding to a stop when deactivated
// at speed?
Copy link
Owner

Choose a reason for hiding this comment

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

Is the question mark in the comment intentional? It doesn't make me feel very confident 🙂


// Use DC control mode as it has better holding power
// Also improves with 6.05 shorting feature
VESC_IF->mc_set_duty(0);
Copy link
Owner

Choose a reason for hiding this comment

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

I wonder if you'd always want to do this, not just when movement was detected (on line 1046 above) and it didn't time out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if you'd always want to do this, not just when movement was detected (on line 1046 above) and it didn't time out?

that would be a question for the VESC Discord. My guess is that it would waste energy and drain our batteries. That's why this entire logic exists (we used to not have it and brake current was keeping our ESCs warm...)

Copy link
Owner

Choose a reason for hiding this comment

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

No response on the discord, I guess I'll do some testing when I have a chance...

@surfdado
Copy link
Contributor Author

Sorry, the comment was there before I tested it, should be removed

@contactsimonwilson
Copy link

Sorry, the comment was there before I tested it, should be removed

Sorry about that comment. Made sense when pitching the idea to you guys.

@Relys
Copy link
Contributor

Relys commented Aug 27, 2024

We should also change

if (d->motor.abs_erpm > 1 || d->brake_timeout == 0) {

if (d->motor.abs_erpm > 5 || d->brake_timeout == 0) {

as discussed https://discordapp.com/channels/904830990319485030/1092899715273740470/1277394682166378609

@Jared-Is-Coding
Copy link
Contributor

I've been riding this for the last two weeks along with @lukash's Sticky Brake changes and have found it to work very well.

No complaints, seems to do a great job.

@lukash
Copy link
Owner

lukash commented Oct 26, 2024

Thank you, closing in favor of a slightly different implementation: #22

@lukash lukash closed this Oct 26, 2024
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.

5 participants