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

Simple-start improvements #29

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

surfdado
Copy link
Contributor

Simple-start now includes a 1 second grace period before heel lifts get detected. Also the cool-down period after dismounting has been reduced to 2 seconds.

Feature: More tolerant simple-start implementation with 1 second grace period

Copy link
Owner

@lukash lukash left a comment

Choose a reason for hiding this comment

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

The git trailer in your commit message doesn't work like this, git requires no newlines between trailers (I got bitten by this before, and with the amount of stuff piling up it's gonna be hard noticing a changelog line is missing):

Feature: More tolerant simple-start implementation with 1 second grace period
Signed-off-by: Dado Mista <[email protected]>

Why do you use the Signed-off-by: one? It actually really only has meaning for the Linux kernel code and maybe few other repos where the owners assign a meaning to it. I mean maybe we could do that, I'm not sure it's necessary, I'd need to read up more on the legal stuff...

But most projects don't use it AFAIK 🤷

@@ -409,6 +409,9 @@ static void reset_runtime_vars(data *d) {
d->last_yaw_angle = 0;
d->yaw_aggregate = 0;

// Reset engage_timer (keeps track of how long the board has been engaged/riding)
Copy link
Owner

Choose a reason for hiding this comment

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

Subjective nitpick: I find this comment to be a bit too much of a:

// add two ones together
int x = 1 + 1;

The code is self-explanatory IMO and the comment just mostly adds unnecessary verbosity. I can certainly merge this, just that I tend to remove this kind of comments while refactoring (and just try to keep the important ones).

Simple-start now includes a 1 second grace period before heel lifts get detected.
Also the cool-down period after dismounting has been reduced to 2 seconds.

Feature: More tolerant simple-start implementation with 1 second grace period
@lukash lukash merged commit e7b0ac1 into lukash:v1.1-preview2-devel1 Dec 20, 2024
1 check passed
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.

2 participants