Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion docs/code/file_structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,22 @@ Updated flow
"config.py" -> "Subsystem";
"config.py" -> "Sensor";
"config.py" -> "Util";
}
}

robot_systems.py
~~~~~~~~~~~~~~~~

It differs from robot.py in that it is only used to initialize the subsystems and sensors, and not to run the robot. It only runs once: when the robot is initialized.
The robot_systems file contains the initialization of the subsystems, sensors, pneumatics, LEDs, and field interactions.

* ``class Robot`` - creates containers for the mechanical subsystems of the robot

* ``class Pneumatics`` - for managing pneumatic systems

* ``class Sensor`` - initializes sensors

* ``class LEDs`` - initializes LEDs

* ``class PowerDistribution`` - manages the power distribution panel

* ``class Field`` - manages field operations like odometry or autonomous trajectory calculations
Loading