Skip to content

Conversation

@LucienMorey
Copy link
Contributor

@LucienMorey LucienMorey commented Jan 26, 2026

Adds a simple 2d mechanism for simulating the turret. The MOI and gains are just random until someone pulls them from the cad and does a little tuning 😉. The tunable to set the desired turret angle can also be deprecated to use the slew absolute method once it has been made. The tunable is also janky because its in rotations which is inconsistent with the rest of the interface

I could use a hand checking that the sim is not done in a cracked way because of the potentially different applications of gear reductions

@LucienMorey LucienMorey marked this pull request as ready for review January 27, 2026 08:51
@LucienMorey LucienMorey changed the title turret draft Add simulated control for turret Jan 27, 2026

# Initialise Encoder
pass
self.absolute_encoder = DutyCycleEncoder(DioChannel.TURRET_ENCODER)
Copy link
Member

Choose a reason for hiding this comment

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

The Talon FXS has a data port. Do we not intend on plugging the encoder into it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think long term its going to be a WCP absolute encoder running over CAN. It may even be that way first, depending on how shipping turns out.

Copy link
Member

Choose a reason for hiding this comment

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

I'm gonna regret not putting the Phoenix Pro season pass on the FIRST Choice list huh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do teams basically get that guaranteed if its just electronically redeemable?

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.

3 participants