zauberzeug / lizard

Domain-specific language to specify behaviour of microcontroller managed hardware
MIT License
15 stars 5 forks source link

Add a base class for all motors and adapt MotorAxis to it #39

Closed pascalzauberzeug closed 5 months ago

pascalzauberzeug commented 6 months ago

This PR adds a virtual motor base class and implements it in CanOpenMotor, ODriveMotor and StepperMotor for now. MotorAxis now accepts all three types of motors, instead of just a StepperMotor like before.

Depends on PR 40