Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to work with spec compliant CAN sims. #53

Merged
merged 5 commits into from
May 25, 2024

Conversation

brettle
Copy link
Member

@brettle brettle commented May 23, 2024

Rename SimDeviceEncoderMediator.java to CANEncoderMediator.java.

Rename SimDeviceMotorMediator.java to CANMotorMediator.java.

Add DutyCycleMediator.java to handle SparkMaxAbsoluteEncoder and CANCoder devices.

Add AnalogInputMediator.java to handle SparkMaxAnalogSensor devices.

Currently passes system test but that doesn't test any of the new functionality.

Rename SimDeviceEncoderMediator.java to CANEncoderMediator.java.

Rename SimDeviceMotorMediator.java to CANMotorMediator.java.

Add DutyCycleMediator.java to handle SparkMaxAbsoluteEncoder and CANCoder devices.

Add AnalogInputMediator.java to handle SparkMaxAnalogSensor devices.

Currently passes system test but that doesn't test any of the new functionality.
@brettle brettle requested a review from CoolSpy3 May 23, 2024 00:26
@brettle
Copy link
Member Author

brettle commented May 23, 2024

Includes PR #50 and PR #49.

Rename AnalogInputMediator -> AnalogInputEncoderMediator.

Fix prefix CANMotorMediator uses to detect a Spark controller.

Make CANMotorMediator set sim busVoltage = 12.
@brettle brettle merged commit 5efa0a6 into master May 25, 2024
4 checks passed
@brettle brettle deleted the fix-to-work-with-compliant-can-sims branch May 25, 2024 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants