Our source code python source code spiresRobot2024 is a fork of Robot Casserole FRC1736’s awesome source code.
Cool things about this source code are:
- python
- pylint
- a robot webserver
- swerve
- field relative driver controls
- the swerve sim
- autonomous
- easy logging to USB sticks, the robot webserver, and networktables
FYI @gerthworm @evanandh @Jernovak38 @yavin @JoshuaGeer @andy_q
One thing that we are noticing on our real robot is that when we do the following sequence of steps:
- power-up the robot
- connect the driverstation to the robot over wifi
- enter teleop on the driverstation
- press the left xbox stick forward to move the robot forward, field relative
- the robot moves backwards (field relative)
- exit teleop
- command the driverstation to exit teleop
- command the driverstation to join the red alliance (was blue alliance)
- command the driverstation to enter teleop
- press the left xbox stick forward to move the robot forward, field relative
- the robot moves forward (field relative)
Our conclusions are that:
- We may or may not have our robot configured correctly between the front of the robot and the azimuth offsets (.e.g. ‘FL_ENCODER_MOUNT_OFFSET_RAD’) of our swerve modules and any invert of the wheel motors (e.g. ‘FL_INVERT_WHEEL_MOTOR’) . But that is not our question.
- Switching into teleop as well as changing our alliance color did not reset our navx gyro angle reading
We suspect that if we had powered up and down the robot after changing the alliance color, then the direction our robot moved when we pressed the left stick forward would have stayed the same, regardless of the alliance color.
Robot Casserole, we’re wondering if what we are experiencing is the intended behavior, and what are the suggested steps for starting the robot in either the red or blue alliance in autonomous or teleop?
-Thanks
-Spires 9106