AGHSEagleRobotics / frc1388-2019

Destination: Deep Space
1 stars 0 forks source link

Pneumatic pressure indicator on dashboard #7

Closed jtechau closed 5 years ago

jtechau commented 5 years ago

This feature is only valid if pneumatics are used on the robot.

Add a pneumatic pressure indicator on the dashboard to alert the driver/operator if pneumatic pressure drops too low. (This can happen if they're using pneumatic actuators faster than the compressor can keep up with.)

For example: This indicator could show the storage pressure in PSI, and could be color coded to indicate how much pressure is left. If the max storage pressure is 120 PSI and working pressure is 60 PSI, the indicator could be green if pressure is > 80 or 90 PSI, yellow if > 65 PSI, and red if < 65 PSI. Red would indicate to the drive team that pneumatic operation may be compromised due to low pressure.

The robot code for this should be simple, if we use a sensor similar to this one: https://smile.amazon.com/dp/B00NIK98O8/ This type of sensor outputs an analog signal which is proportional to the pressure, and can be read using the AnalogInput or AnalogPoteniometer classes.

jtechau commented 5 years ago

Air pressure is available to the dashboard via Air Pressure key. There's also an Ok To Climb key, which should display as green when true, red when false. This will give the operator a quick visual indicator as to whether air pressure is sufficient to operate the lifter.