From 6070531c00bc222426adc57a55e0edc82d03fc48 Mon Sep 17 00:00:00 2001 From: Dado Mista Date: Tue, 26 Mar 2024 17:25:47 -0700 Subject: [PATCH] Refloat: no wheelslip detection in flywheel mode Fix: Don't report wheelslip in flywheel mode Signed-off-by: Dado Mista --- refloat/refloat/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/refloat/refloat/main.c b/refloat/refloat/main.c index b1ae2baf8..103202833 100644 --- a/refloat/refloat/main.c +++ b/refloat/refloat/main.c @@ -806,7 +806,11 @@ static void calculate_setpoint_target(data *d) { } } - if (d->state.mode != MODE_FLYWHEEL) { + if (d->state.mode == MODE_FLYWHEEL) { + // We don't care about / don't want to report wheelslip in flywheel mode + d->state.wheelslip = false; + } + else { if (d->state.sat == SAT_PB_DUTY) { if (d->float_conf.is_dutybeep_enabled || (d->float_conf.tiltback_duty_angle == 0)) { beep_on(d, true);