Closed docholiday1234 closed 4 months ago
Thank you for the logs!!
The issue appears to be that TrainerDay sends ERG targets at least once per second. Currently the SmartSpin2k ERG algorithm uses the lookup table for the first two seconds after it receives a ERG target and then after the two seconds elapses, it uses a normal positive feedback control loop. With these rapid fire ERG targets, the current scheme never gets a chance to go into a positive control mode and the rapid ERG targets keep it spiraling out of control.
It also appears that this fast ERG target sending is breaking the protections in place to keep the resistance in bounds on the Peloton (further complicating the issue as it starts to build a bad table due to skipped motor steps).
I have some possible fixes in mind.
New branch #516
firmware.zip @docholiday1234 , give this firmware a try.
Instructions: https://github.com/doudar/SmartSpin2k/wiki/Loading-Software Use the "Updating your existing software" section, except use the binary from the zip file attached to this message.
Hi, It shifted back and forth, immediately and constantly increasing and decreasing the resistance. Then I turned up the watts and it seems to increase resistance but then when I turned back down the watts it still increased resistance although it never 'bottomed out' and now that I'm not even pedaling it is still changing resistance.
firmware.zip This is the latest build. It should work for you.
SS2K is not working with Trainer Day app iOS 17.0.3
Steps to reproduce
Expected behavior It should raise or lower resistance consistent with ERG mode wattage setting
Actual behavior resistance seems to acting sporadically
Additional Information
Custom UDP Receiver (Port 10000).txt