loadrt pwmgen output_type=0
addf scale.servo servo-thread

addf pwmgen.update servo-thread
addf pwmgen.make-pulses servo-thread

setp pwmgen.0.enable 1
setp pwmgen.0.pwm-freq 333

setp scale.servo.gain 0.0037
setp scale.servo.offset 0.333

#CONNECTIONS
net scale-sig    motion.analog-out-00    =>    scale.servo.in    #input degrees
net scale-pwm    scale.servo.out    =>    pwmgen.0.value
