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

Flywheel safety: auto exit flywheel mode after 10s of being idle #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,10 @@ static void refloat_thd(void *arg) {
}
d->enable_upside_down = false;
d->state.darkride = false;
if (d->state.mode == MODE_FLYWHEEL) {
// Same strategy for flywheel: exit mode after 10 seconds of idle
flywheel_stop(d);
}
}
if (d->current_time - d->disengage_timer > 1800) { // alert user after 30 minutes
if (d->current_time - d->nag_timer > 60) { // beep every 60 seconds
Expand Down
Loading