Cruise and Walk
These functions require a GPIO-connected button. The cruise input (in_cruise
) must be mapped to GPIO through input mapping.
- One physical input can serve both
in_cruise
(long press) andin_mapswitch
(short press) - Map changes automatically disable cruise mode
Cruise Function
When enabled, cruise control maintains the current speed level. Activate cruise by long-pressing the cruise button. Deactivate it using the brake or accelerator (if enabled in crsopts
).
Cruise activation requires the relative speed to exceed the walklvl
value. With speed measured from 0 to 1 (full motor speed), setting walklvl
to 0.1 means cruise activates only above 10% of full speed.
Assisted Walk Function
This special cruise mode helps when pushing a bike uphill. Activate walk assist by pressing and holding the cruise button - it remains active until release. The system provides walk assist below walklvl
speed and switches to cruise mode above it.
Parameters
All parameters are located in the /cruise
folder.
crsopts
Configuration options for cruise and walk functionality.
Bit | Description |
---|---|
0 | Enable walk function |
1 | Enable cruise function |
2 | Allow accelerator to deactivate cruise |
3 | Allow cruise button press to deactivate cruise |
4 | Activate cruise with short press (instead of long press) |
walklvl
[0-1]
Defines the speed threshold for walk function activation. Walk function activates below this speed level. Values range from 0-1, where 1 represents full speed (e.g., 0.1 equals 10% of full speed).