diff --git a/controller/controller.ino b/controller/controller.ino index 8c97ec0..11ffe7b 100644 --- a/controller/controller.ino +++ b/controller/controller.ino @@ -452,11 +452,12 @@ void loop_idle() { void loop_on() { int16_t speedvalue=constrain( map(adc_throttle, ADC_CALIB_THROTTLE_MIN, ADC_CALIB_THROTTLE_MAX, 0, 1000 ) ,0, 1000); - int16_t lastSpeed=(out_speedFL+out_speedFR+out_speedRL+out_speedRR)/4; + /*int16_t lastSpeed=(out_speedFL+out_speedFR+out_speedRL+out_speedRR)/4; if (speedvalue<=lastSpeed) { //braking speedvalue = (lastSpeed-speedvalue)>MAXBRAKERATE ? (lastSpeed-MAXBRAKERATE):speedvalue; - } + }*/ + out_speedFL=speedvalue; out_speedFR=speedvalue; diff --git a/hoverboard-firmware-hack-foc-serial-esc b/hoverboard-firmware-hack-foc-serial-esc index 7c76c9f..b1e6d9e 160000 --- a/hoverboard-firmware-hack-foc-serial-esc +++ b/hoverboard-firmware-hack-foc-serial-esc @@ -1 +1 @@ -Subproject commit 7c76c9f8392b9344033f6a7c06d4ceb000b024da +Subproject commit b1e6d9e995273a3c0e4baca66a10b09b8e64843d