[ ] Make sure that methods are being used, or remove unnecessary functions
[ ] Make sure that commands don't implement loggable
[ ] Consider creating a simple way to get the limelight data instead of calling NetworkTableInstance.getDefault().getTable("limelight").getEntry("param").set(val) every time
[ ] Use consistent types, i.e. double or Double, not both
[ ] This should be refactored into a command, and shouldn't be using a while loop as they stop other processes on the robot
Overall, I felt the code was very strong, but the visual aesthetic made the code hard to understand. Cleaning this up for future years could increase productivity and reduce bugs.
Overall:
NetworkTableInstance.getDefault().getTable("limelight").getEntry("param").set(val)
every timedouble
orDouble
, not bothhttps://github.com/6391-Ursuline-Bearbotics/2020_UARobotics_Infinite_Recharge/blob/09c9c3baa37dc89dd5b4661b4605c208c920fbed/src/main/java/frc/robot/Robot.java#L106-L112
teleopInit()
andautoInit()
. Consider making it one functionhttps://github.com/6391-Ursuline-Bearbotics/2020_UARobotics_Infinite_Recharge/blob/09c9c3baa37dc89dd5b4661b4605c208c920fbed/src/main/java/frc/robot/subsystems/Limelight.java#L36-L41
https://github.com/6391-Ursuline-Bearbotics/2020_UARobotics_Infinite_Recharge/blob/09c9c3baa37dc89dd5b4661b4605c208c920fbed/src/main/java/frc/robot/subsystems/Limelight.java#L66-L70
https://github.com/6391-Ursuline-Bearbotics/2020_UARobotics_Infinite_Recharge/blob/09c9c3baa37dc89dd5b4661b4605c208c920fbed/src/main/java/frc/robot/subsystems/Limelight.java#L127
Overall, I felt the code was very strong, but the visual aesthetic made the code hard to understand. Cleaning this up for future years could increase productivity and reduce bugs.