Skip to content

Robot code to demonstrate various sensors that we might use. Written in Python.

License

Notifications You must be signed in to change notification settings

yvhs-project212/SensorDemoRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project 212 Sensor Demo Robot

This repo provides robot code to run a demonstration of several types of sensors. Currently, the sensors include:

Code structure

Unlike a real robot where a sensor would be a small part of a subsystem, in this code each subsystem contains one sensor and nothing else. The commands2 library (which defines the Subsystem base class) allows subsystems to implement a periodic() method, which will get run automatically with each update -- it doesn't need to be called from the robot's periodic() method. We use this feature to implement periodic() methods that update the Smart Dashboard with each sensor subsystem's sensor value, as long as the robot is enabled.

Since there are no user controls (such as a joystick) which could trigger robot actions, and since each sensor subsystem reads its sensor and updates the dashboard... that's all the robot has to do!

About

Robot code to demonstrate various sensors that we might use. Written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages