Starflight-code / pioneer-robotics-2022

Pioneer Robotics 2022 Code
GNU General Public License v3.0
0 stars 1 forks source link

[Feature] Faux Multi-threading #21

Closed Starflight-code closed 1 year ago

Starflight-code commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Include a faux multi threading by separating tasks into services.

Describe the solution you'd like A clear and concise description of what you want to happen. Create functions which can run independently of others, and can be started with the PROS scheduler.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. N/A

Additional context Add any other context or screenshots about the feature request here. https://pros.cs.purdue.edu/v5/tutorials/topical/multitasking.html

Starflight-code commented 1 year ago

Updated: Coded our own scheduler, since PROS's version is not capable of doing anything near what we need. See recent commits and code added to main.cpp

Starflight-code commented 1 year ago

Implimented a custom scheduler, suprisingly runs without any issues. Testing finished and merge will be completed shortly.