refloat icon indicating copy to clipboard operation
refloat copied to clipboard

Feature request: Speed/ERPM based pushback and buzz

Open buestad opened this issue 7 months ago • 2 comments

It would be really nice to have a speed based pushback and buzz implemented.

In many countries there is an upper speed limit for small electric vehicles. This also needs to be not controlled by app, so if possible this limit, for example 20km/h for my country, should not be possible to change in the VESC tool app, but only in the desktop version. Or even hard coded, so one could coose a 20km/h version of Refloat, and possibly other limits for other countries.

(I can participate in developing and testing. I work as a developer but have no coding experience in lisp)

buestad avatar May 25 '25 14:05 buestad

My two cents here:

I would love to have speed-based pushback/buzz, to limit the speed on the wheels when I let my kids/friends use the board.

That said, I disagree with the ability of not allowing the VESC Tool app to change it rather than the desktop app (I don't even think that's possible right now). Some owners don't have computers which can connect to the boards, and the mobile device is the only way.

VESC Tool is more of a configurator, you could argue that ride apps like Float Control or Floaty are the "apps" you use while riding - and they wouldn't be able to change this setting (if you really need to argue that).

acheronfail avatar May 27 '25 02:05 acheronfail

It's not (without ugly hacks on the VESC Tool side) possible to make something configurable only on the desktop version and not on mobile. Realistically it's not possible to make some configuration value "unchangeable" in the tool, the only realistic option for this I see is a different package with the value hard-coded. But, if these were to be in the package store, it would create somewhat of a mess in the package list for users and the build system with the repository is not made to handle this, not sure what that would take.

The code is C, no lisp knowledge needed.

FTR there's been requests for speed notifications at certain speeds, which is different from a pushback (+ haptic alert?).

lukash avatar May 27 '25 15:05 lukash

I have made an attempt on developing this. I have a working copy where I can set a speed limit in the pushback section and have haptic feedback. I've tested this on my Pint which runs VESC 6.05 at low speeds and it works. If anyone are willing to test I can send the bin file, or you can clone my fork of Refloat and build yourself. Use the speed_pushback branch.

Image

buestad avatar Jun 11 '25 07:06 buestad

I’ll definitely try this out sometime this week - thanks for that. I’m happy to clone and build https://github.com/buestad/refloat/tree/speed_pushback myself. 👍

acheronfail avatar Jun 11 '25 07:06 acheronfail

When compiling you will get a warning in state.c. I've talked to @lukash about this and we can ignore it for now. I has to do with some SAT number conversion from Refloat to Float for compatibility.

buestad avatar Jun 11 '25 10:06 buestad

Implemented in https://github.com/lukash/refloat/pull/52.

lukash avatar Jul 16 '25 16:07 lukash