I'm trying to make an electric bike with vesc 6 (purchased from flipsky) and a 1720w motor. It's based on Tom Stanton's project. I want to have a switch to change between throttle and cadence controls. For the throttle the ADC app works fine, but I couldn't find a way to implement a cadence sensor without modifying the firmware.
There I encountered a problem, because when I compiled and uploaded the firmware according to this tutorial, vesc-tool couldn't connect anymore. I had to switch to windows and upload the original .bin firmware and bootloader using the st-link app. Then I tried uploading the compiled file according to these instructions and I even though I modified a couple of files I haven't noticed any change. It seemed like it uploaded the default firmware. When I upload the firmware, that I compiled, using the st-link, I can't connect to the vesc and a green LED lights with full brightness as opposed to a normal dimmer light.
Am I doing something wrong? Maybe there is another, easier way to implement the cadence sensor?