Hey y’all,
Seeing how many teams are using flywheels this season, we thought it would be cool to share our simple graphing library. Graphy is a PROS library, so if you do not already, you must use PROS to use Graphy.
I’m lazy, just give me the link: GitHub - jazonshou/Graphy: A simplified PROS graphing library for VEX robotics
Here is an example of how you might use Graphy:
#include "Graphy/Grapher.hpp"
// Create grapher
std::shared_ptr<graphy::AsyncGrapher> grapher(new graphy::AsyncGrapher("Flywheel Velocity vs. Time"));
// Add data types
grapher->addDataType("Desired Vel", COLOR_ORANGE);
grapher->addDataType("Actual Vel", COLOR_AQUAMARINE);
// Start grapher task
grapher->startTask();
while(true) {
// Update data
grapher->update("Desired Vel", DESIRED_VELOCITY);
grapher->update("Actual Vel", ACTUAL_VELOCITY);
pros::delay(10);
}
Check out Graphy here!
Cheers,
4253B