purduesigbots/pros

✨[FEATURE REQUEST] Check if Device Connected to Port

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
Sometimes cables fail. It just happens. If this does happen, users will want to know as soon as possible. Currently, the user will only be alerted if a device is connected to the brain and disconnects all while the program is running. If a device is disconnected before the program starts, the user will not be alerted when the program starts.
 
What is the behavior that isn't addressed by the existing API?
Check if a v5 device is connected to the brain. For example: sensor.connected() should return true if it is currently connected to the brain, and return false otherwise. In addition, a warning can be displayed on the brain screen when a device is constructed but not connected to the specified port.

I didn't notice the is_installed() function in the pros 4 docs 😭 sorry ill close this now