Replies: 5 comments
-
Hmm... -32768 should be getting rejected - it's supposed to be an invalid number (int16_min). There are a couple people looking at improving our current power table (lookup table) which is what is generating those invalid numbers. I'll reference them here so that they have it for their information. @ddtomic @benv12 The tests for int16_min are in this function which checks the power table for valid values. It will return int32_min if nothing is found, (but that doesn't seem to be our problem here.) Lines 181 to 242 in 04fd746 In the meantime, with the newest code, we have more options available as preventative measures in the stepper code by testing for power less than setpoint and not driving further into the hole. That would be at: Lines 388 to 396 in 04fd746 Feel free to take a look yourself and see if there's a modification you can make. Otherwise, I'll look at it and see if I can come up with a test that doesn't interfere with anything else. Felt resistance bikes are a bit of a challenge, but not insurmountable. Thanks for the report!!! |
Beta Was this translation helpful? Give feedback.
-
I just added this to the moveStepper(). Give the binary a try and let me know if it helps you. Make sure to unzip it first.
I haven't tested it at all, so there's a chance it could fail spectacularly. |
Beta Was this translation helpful? Give feedback.
-
Hi Anthony, thank you for the fast answer and firmware. I tested it and it worked fine to stop motor to continue when the measured power is below target but there are some strange behavior I noticed: 1) Once you stabilize cadence on new motor position, power could be higher than target and there is no adjustment to lower resistance, 2) sometimes the adjustment of resistance seems to be slower on increase. Maybe there is a desynchronization between motor position and what is expected. |
Beta Was this translation helpful? Give feedback.
-
Hi Anthony, after some settings changes and more testing, I can tell you that the firmware works very well. No more problems with lowering the resistance. Thank you!!! Beyond this change, the algorithm for calculating the motor position when using felt resistance brakes would probably have to be revised. |
Beta Was this translation helpful? Give feedback.
-
Awesome! Glad to hear it, Mario! Yes, that's my experience with the felt resistance - noting, nothing, nothing, full resistance! |
Beta Was this translation helpful? Give feedback.
-
Hello.
I have problems in ERG mode when the application requests to lower the power. The SmartSpin2k begins to rotate counterclockwise and does not stop until it reaches the maximum limit of the bicycle (hard braking limit). It does not stop even when the power read is lower than that requested by the app. I was able to improve the situation by lowering the engine speed, but even then the engine stopping point is at a much lower power than the requested one.
This mainly happens when the SmartSpin2k is restarted and the power drops are drastic, for example at the end of a sprint.
I am using a bicycle with a felt brake, therefore, with a few turns (1 to 3) the resistance changes a lot.
Looking at the logfile I see that in many situations: "Min Position Set: -32768". Under normal conditions, this parameter has a larger value: -100, 0, 100, -500, etc. There is no problem when the required power increase fast.
In previous software versions (May) I believe this did not happen. I tried installing an older version but had problems and went back to the latest one.
Is it possible to change the behavior in order to avoid reaching the hardware limits? Is there any change suggestion for configuration to improve?
Beta Was this translation helpful? Give feedback.
All reactions