Skip to content

Simulation Changes - #67

Merged
CoolSpy3 merged 19 commits into
masterfrom
better-simulation
Apr 21, 2024
Merged

Simulation Changes#67
CoolSpy3 merged 19 commits into
masterfrom
better-simulation

Conversation

@CoolSpy3

Copy link
Copy Markdown
Member

Some simulation changes I was working on before I left the team. I'm opening this PR so that they don't get lost.

Probably related to DeepBlueRobotics/DeepBlueSim#46.

@brettle

brettle commented Apr 21, 2024

Copy link
Copy Markdown
Member

@CoolSpy3 please mark this as ready for review if you think it's now good to go. I'd like to get it integrated relatively soon.

@CoolSpy3 CoolSpy3 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I went back through the changes and made some notes. After those are fixed, I think this should be good to merge, but keep in mind that this updates everything to use the naming semantics from DeepBlueRobotics/DeepBlueSim#46 , so the changes may not be fully compatible with the current simulator.

As a side note, I think that that version of the simulator also takes care of gearing, so the getGearing/setGearing methods in MockedCANCoder can probably be deleted.

Do you want me to work on this? They aren't too complex, but I'm fairly busy this week, so they probably wouldn't get done until sometime next week.

Comment thread src/main/java/org/carlmontrobotics/lib199/sim/MockedEncoder.java Outdated
Comment thread src/main/java/org/carlmontrobotics/lib199/sim/MockedEncoder.java
Comment thread src/main/java/org/carlmontrobotics/lib199/sim/MockedEncoder.java
Comment thread src/main/java/org/carlmontrobotics/lib199/sim/MockedSparkMaxPIDController.java Outdated
@brettle

brettle commented Apr 21, 2024

Copy link
Copy Markdown
Member

keep in mind that this updates everything to use the naming semantics from DeepBlueRobotics/DeepBlueSim#46 , so the changes may not be fully compatible with the current simulator.

👍

As a side note, I think that that version of the simulator also takes care of gearing, so the getGearing/setGearing methods in MockedCANCoder can probably be deleted.

👍

Do you want me to work on this?

I'll work on it but would appreciate your review or input as you have time. (Academics still come first. 😄).

@brettle

brettle commented Apr 21, 2024

Copy link
Copy Markdown
Member

Done. Let me know if you see anything else. Otherwise mark as ready for review. No rush.

@CoolSpy3

Copy link
Copy Markdown
Member Author

Looks good! The one thing I notice is that spark max following of phoenix controllers has a code block, but is left unimplemented. However, given that that is a rare use case, we haven't investigated the relevant following semantics, and the code will print an error, I'm fine to leave that as unsupported for now.

@CoolSpy3
CoolSpy3 marked this pull request as ready for review April 21, 2024 21:38
@CoolSpy3
CoolSpy3 merged commit ab070a2 into master Apr 21, 2024
@CoolSpy3
CoolSpy3 deleted the better-simulation branch April 21, 2024 21:44
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