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

✨Added functionality for size() and [] operator #463

Closed AlexHunton2 closed 1 year ago

AlexHunton2 commented 1 year ago

Summary:

Added functionality for MotorGroups to be treated more like arrays than classes. With these changes the user should be able to index a MotorGroup similar to an array, and get its size with a size() method. This should allow MotorGroups to be looped through.

Motivation:

450

Test Plan:

Requires hardware testing. Asked to add this PR ASAP in order to keep ahead on schedule. Will hardware test and add information about that here when completed.

noam987 commented 1 year ago

Passed hardware testing