You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
It would be good to have a customizable driveSpeedScalar to modify the speed of the drivetrain with on Shuffleboard. Currently it's just a boolean that halves the drivespeed when true. This can just be done by modifying (and renaming) the existing TableEntryhere and setting the initialValue to a Double instead of a Boolean. You'd also have to multiply the driver-inputted throttle value by it here
During a match, the driver would not have time to go into shuffleboard and type in a drivespeed scalar to enter slowmode. There should be a button that sets the drivespeed scalar to a predefined value in code (0.5 or something should be good). A function in the OI.kt file should be created that sets the value of driveSpeedScalar to a predefined value in drivetrainPreferences that's triggered by the pressing of the X button on the primary controller. The function should also set the speed scalar back to 1.0 when the button is pressed again. See here for an example of how to set the value of a TableEntry
The text was updated successfully, but these errors were encountered:
Oh hm I didn't realize that we already had a driveSpeedScalar in the code. Would it be better to modify that or a TableEntry? Values in the Preferences table persist after rebooting right? I'm worried that we'll accidentally forget to change the value back to 1.0 before the match and we go 🐢🐢. Have we run into that before or is that not really a problem?
Two parts:
driveSpeedScalar
to modify the speed of the drivetrain with on Shuffleboard. Currently it's just a boolean that halves the drivespeed when true. This can just be done by modifying (and renaming) the existingTableEntry
here and setting theinitialValue
to a Double instead of a Boolean. You'd also have to multiply the driver-inputted throttle value by it hereOI.kt
file should be created that sets the value ofdriveSpeedScalar
to a predefined value indrivetrainPreferences
that's triggered by the pressing of the X button on the primary controller. The function should also set the speed scalar back to 1.0 when the button is pressed again. See here for an example of how to set the value of aTableEntry
The text was updated successfully, but these errors were encountered: