- These are the conventions that MUST be followed when editing this repository
- Lorem ipsum dolor sit amet
autoflake
for removing unused imports (https://github.com/myint/autoflake)- Install with
pip install autoflake
- Install with
isort
for organizing imports (https://github.com/timothycrosley/isort)- Install with
pip install isort
- Install with
black
for formatting (https://github.com/ambv/black)- Install with
pip install black
- Install with
- Snake case for variables
drive_motor_left = TalonSRX(0)
veloicty_right = 10.0
- Lower camel case for class methods and functions
def setVelocity(self, velocity_left: float, velocity_right: float) -> None:
def boundRadians() -> float:
- Upper camel case for class names
class Robot(magicbot.MagicRobot):
class DriveTrain:
- Use type annotations wherever possible (see examples above)
- Time:
seconds
(some native function usems
) - Length:
meters
(some native functions usefeet
) - Angle:
radians
(some native functions usedegrees
; theconfig.json
file uses degrees; paths are saved indegrees
but are converted toradians
when imported) - Weight:
kilograms
- Coordinates:
- x:
left/right
- y:
backwards/forwards
- theta:
counterclockwise starting from 0 facing forwards
- x: