"""Example driver file on instantiating new motors and driving them."""fromdataclassesimportdataclassfromfirmware.bionic_motors.motorsimportControlParams
[docs]@dataclassclassViolenceStrength:"""A class to dictate the strength of the violence."""ARM_PARAMS:ControlParamsARM_PARAMS_HEAVY:ControlParamsGRIPPERS_PARAMS:ControlParamsLEG_PARAMS:ControlParamsLEG_PARAMS_HEAVY:ControlParams
# TODO: add more as needed# Control parametersNORMAL_STRENGTH=ViolenceStrength(ARM_PARAMS=ControlParams(kp=30,kd=2),ARM_PARAMS_HEAVY=ControlParams(kp=50,kd=2),GRIPPERS_PARAMS=ControlParams(kp=100,kd=2),LEG_PARAMS=ControlParams(kp=75,kd=3),# NOT REAL VALUESLEG_PARAMS_HEAVY=ControlParams(kp=125,kd=3),# TODO: add more as needed)MATT_STOMPY_STRENGTH=ViolenceStrength(ARM_PARAMS=ControlParams(kp=200,kd=4),ARM_PARAMS_HEAVY=ControlParams(kp=12,kd=2),GRIPPERS_PARAMS=ControlParams(kp=50,kd=2),LEG_PARAMS=ControlParams(kp=200,kd=4),# NOT REAL VALUESLEG_PARAMS_HEAVY=ControlParams(kp=200,kd=4),# TODO: Change Params)