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

If motor stops receiving packets from display, we should do a few things for safety: #111

Open
geeksville opened this issue Aug 13, 2019 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@geeksville
Copy link

Per discussion with @casainho and @lowPerformer. Capturing here to do someday:

If the motor stops receiving packets from the display, we should turn off a couple of modes the display might have forced:

  • Turn off walk assist
  • Turn off cruise mode

Because otherwise a sw (or hw, but more likely sw ;-) ) fault in the display controller could cause hangage (even once we enable the watchdog if we have user visible fault screens enabled). We should be very conservative before taking this drastic step though - i.e. only if we miss 5 seconds worth of packets or something.

It is an open question if the pedal boost behavior should stay on?

@geeksville geeksville added the enhancement New feature or request label Aug 13, 2019
@casainho
Copy link
Contributor

This is really important!! I am afraid of walk assist or cruise mode on that situation!!

@leon927
Copy link
Contributor

leon927 commented Aug 15, 2019

I have actually implemented that in the 0.20.0. If a packet is not received it will turn off everything.

The controller needs constant communication and if this does not happen it will go to OFF_MODE.

Here are the modes:

#define OFF_MODE 0
#define POWER_ASSIST_MODE 1
#define TORQUE_ASSIST_MODE 2
#define CADENCE_ASSIST_MODE 3
#define eMTB_ASSIST_MODE 4
#define WALK_ASSIST_MODE 5
#define CRUISE_MODE 6
#define CADENCE_SENSOR_CALIBRATION_MODE 7

But the throttle does work regardless. And maybe this would be good to disable as well?

@shadow974
Copy link

I agree with "walk assist" and "cruise mode" as they are initiated by serial communication and cannot be stopped without it.. Throttle and last active assist mode should be remain enabled imho.

@casainho casainho added this to the 0.21.0 milestone Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants