finally pas on vesc with 3 wire sensor!!

Nice, I saw that video a couple days ago, makes me want to try out PAS on one of my VESC bikes.

EDIT:
I am attaching the .lisp(just change .zip to .lisp)script referenced in the video here for posterity
 

Attachments

  • pas_vedder.zip
    2.4 KB · Views: 34
Last edited:

Is this your video/script?
As just wondering if I remove the following it would keep adc1 (throttle) available to override pa's immediately if needed?

(defun set-assist (assist1)
(progn
(define assist (if assist1 1 0))
(if assist1
(progn
(define assist_cnt 0)
(app-adc-detach 1 2) ; detach ADC1 from the APP ADC
(app-adc-override 0 1.5) ; override ADC1 value
)
; else
(app-adc-detach 1 0) ; engage throttle current, attach ADC1 to enable the motor
)
)
)
 
Back
Top