purduesigbots / pros

Source code for PROS kernel: open source C/C++ development for the VEX V5 microcontroller
https://pros.cs.purdue.edu
Other
259 stars 76 forks source link

PROS 4.0.1: Fix the Device Class with some implementations as a base class. #527

Closed WillXuCodes closed 1 year ago

WillXuCodes commented 1 year ago

Currently, the device class has some pure virtual functions that should have implementations as a proper base class with a registry call to get what device is plugged in. The point of this is to allow users to dynamically initialize their devices by detecting what is on plugged in on hardware.

WillXuCodes commented 1 year ago

497 gonna package this in with this, registry.c is a file worth looking at for calls to help with getting what device is installed.

WillXuCodes commented 1 year ago

Done