Hey I’m having trouble with getting my autonomous working. I’m trying to use sequential commands in robot container but I can’t get anything to work. Can someone help teach me how to get this autonomous working? I plan on extending the elevator up and outaking a cube then driving backwards.
I recommend against using DifferentialDrive.arcadeDrive for auto. The default behaviour of squaring the inputs and applying a deadband is great for joysticks, but not for auto. For example, a “speed” of 0.6 will end up as 0.3364.
Since the github has been updated I’ve changed this. I think my issue may have to do with most of my commands use a Supplier , could this be why most of the code for auto doesn’t work? As well I’m not able to get the drivetime command for auto to work but there seems to be no errors.
‘‘public Command getAutonomousCommand() {
return new SequentialCommandGroup(
new ElevatorUp(m_elevator, () → 0), () → 0.67));’’
the Drivetime only has a double value, which is still confusing on why it didn’t earlier.
How would you do it through the drivetrain? because I’m not sure if the Drivetime command itself actually works.
We do technically have encoders but we haven’t had the chance to program the for our elevator. Until then we planned on testing which time and speed would be best for auto. Would the encoders interfere with any of the auto code we just made? or does it just need to the commands to be named the same?
Hey I’m sorry for such the late response, we’ve tested the auto and it works great! This is without the encoders so far though ,just in case we’re not able to get the encoders working in auto we have code we can use where we’ve tested the timing and speed needed for our arm.