mix bb_servo_pca9685.upgrade (bb_servo_pca9685 v0.6.0)

Copy Markdown View Source

Lifts reverse? into the actuator's transmission

BB.Servo.PCA9685.Actuator no longer takes a reverse? option. Polarity now lives in a per-attachment transmission block in BB.

This upgrader rewrites every robot module in the project: for each actuator with BB.Servo.PCA9685.Actuator as its driver, it removes reverse?: from the actuator's options and, when it was true, nests a transmission do reversed? true end block inside the actuator's own do/end. It also handles re-running from older versions where the transmission sat at the joint level: any joint-level transmission block is moved into the matching actuator.