-
Notifications
You must be signed in to change notification settings - Fork 3
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
Phoenix6 #49
base: offseason-tuning
Are you sure you want to change the base?
Phoenix6 #49
Conversation
@@ -35,26 +33,6 @@ class LedConstants { | |||
MOVEMENT(Blinkin.BlinkinLedMode.FIXED_STROBE_WHITE) | |||
} | |||
|
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.
I deleted this cause according to phoenix6 migration guide candle support hasn't been added yet
|
||
private val isConnected = pigeon2.lastError.equals(ErrorCode.OK) |
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.
I couldn't find an equivalent to this in pigeon2 code, im not sure if the .upTime attribute is the write way to check if the pigeon is connected
DrivetrainConstants.DRIVE_STATOR_CURRENT_LIMIT.inAmperes | ||
driveConfiguration.statorCurrLimit.triggerThresholdCurrent = |
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.
i didn't see any time or trigger thresholds for stator current? is this stator current limit stuff important since it isn't enabled
|
||
inputs.drivePosition = driveSensor.position | ||
inputs.steeringPosition = steeringSensor.position | ||
|
||
inputs.driveVelocity = driveSensor.velocity | ||
inputs.steeringVelocity = steeringSensor.velocity | ||
|
||
inputs.driveTemp = driveFalcon.temperature.celsius | ||
inputs.steeringTemp = steeringFalcon.temperature.celsius | ||
// processor temp is also something we may want to log ? |
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.
phoenix6 has temp for both device and processor, do we only care about device?
} | ||
steeringFalcon.configurator.apply(motorOutputConfig) | ||
// motor output configs might overwrite invert? | ||
steeringFalcon.inverted = true |
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.
motorOutputConfig also controls the invert so I added this incase it gets overrided from the previous line, even if it doesn't this couldn't hurt right?
@@ -178,19 +178,19 @@ class Falcon500( | |||
) : Motor<Falcon>() { | |||
|
|||
override val appliedVoltage: ElectricalPotential | |||
get() = falcon500.motorOutputVoltage.volts | |||
get() = (falcon500.get() * RobotController.getBatteryVoltage()).volts |
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.
I was gonna use supply voltage for this but in phoenix6 code they use battery voltage to scale percent output into volts
No description provided.