Before I ask about this I totally understand this is quite a bespoke requirement and I very much doubt anyone else would be interested in this feature so I don't expect it to be discussed in reference to the main development path. However I just want to ask if an idea I have would in theory be possible or not. I would like to be able to work on a specific build for this myself if i can workout the build chain correctly under windows.
As you may know i have been working on a trike installation and having some issues that are specific to a rider who has a prosthetic leg. She applies about 80% force on her left leg and only 20% on her right, the right prosthetic leg also has a significantly shorter crank and so this results in a very uneven torque curve left to right. As a result on any incline the motor hunts as it detects force only on the left leg push, so you don't get a steady power applied, this is very annoying and stops the motor from giving its full penitential, and she struggles up any hill without using the throttle to override.
I have thought of two potential ways to maybe resolve this.
1. Somehow change the torque measurements to average over at least a full rotation so to help even out the hunting. However I worry that this may cause an issue when slowing down adding a delay to remove power? they do have ebrakes that will help. Also it may be difficult to add this into the code as its would need to keep a running average for many cycles of the main loop? I'm not an expert here?
2. Change the motor from being controlled by the toque sensor but instead use the cadence reading as the input to control the motor power. This would in effect turn it into a standard PAS mode found on standard wheel motor systems which she used to have on the trike and I know would work. I appreciate this is the last thing you would usually want to do but in this case would work better.
From a completely theoretical point of view do either of thease sound plausible? or a crazy idea? or indeed can anyone think of another way i could help with this admittedly unique issue.
I am happy to experiment with my own specific build and have
basic coding skills but I have not yet managed to compile a successful hex file that's the size i am expecting using the src for a specific beta for example ( I am using the release.bat file to generate the files). I am always around 20KB smaller that i expect so i haven't yet tried uploading it to test. I am trying to use SDCC on windows maybe that makes the difference? Is anyone compiling under windows that can confirm the process in more detail?
If anyone isinterest in the trike build the latest write-up is here
https://empoweredpeople.co.uk/2019/04/2 ... -update-2/.