(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
)
)
)