parseInputs method
- @override
- GamepadState state
override
Return a list of commands based on the current state of the gamepad.
Implementation
@override
List<Message> parseInputs(GamepadState state) => [
DriveCommand(frontSwivel: frontSwivel),
DriveCommand(frontTilt: frontTilt),
DriveCommand(rearSwivel: rearSwivel),
DriveCommand(rearTilt: rearTilt),
GripperCommand(servoAngle: armTilt.round()),
];