-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chassis update #5
Conversation
components/chassis.py
Outdated
@@ -396,7 +417,7 @@ def get_tilt_rate(self) -> float: | |||
|
|||
@feedback | |||
def get_drive_current(self) -> float: | |||
return sum(abs(x.drive.getStatorCurrent()) for x in self.modules) | |||
return sum(abs(x.drive.get_stator_current().value) for x in self.modules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eep, this is a code smell. The Chassis
component should never have been reaching into the SwerveModule
internals in the first place.
nit: add a SwerveModule.get_drive_current() -> float
method
Is the sim working for you guys? Amber says navx is having issues, but I'm having issues with the sim not showing the TalonFX objects on one of its tabs |
f0f8eae
to
a7e7ff7
Compare
It was resetting the magnet offset which we need
ea3c25f
to
6a062d4
Compare
6a062d4
to
390b272
Compare
robot.py
Outdated
# print(pov) | ||
if pov != -1: | ||
joysticks[0] = 0 | ||
joysticks[1] = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with this joysticks
list?
390b272
to
a3b71b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Rewrite chassis.py and physics.py using Pheonix 6 API and maintain TalonSRX support through Pheonix 5