Plotting Pedro is a plotting software designed by FTC Team #14840: DCS Mechwarriors that allows you to develop Bezier Lines, and Curves, lastly outputting that into code which then you can use in Pedro Pathing developed by Team #10158: Scott's Bots.
- Bezier Curve Manipulation: Allows you to control start and end points, along with 2 control points
- Configurable Settings: Load and save configuration settings from a config.txt file
- Support: Able to export your paths to Pedro Pathing
- Ensure you have Python installed on your system.
- Install the required dependencies:
pip install -r requirements.txt
- Ensure you have a 1080x1080 field image in your directory, if you need to edit the location of that image if you can do so in the auto-generated config file at startup.
- Run the main.py script:
python main.py
- You can now click twice anywhere in the field location and it will generate a curve, you can drag on the 2 control points to modify them, or use the sliders on the right side. Press "Linearize" to make the line straight.
We use a config.txt file to store configuration settings. If the file does not exist, it will be generated with default values:
{
"scale": 1, // Higher is smaller, making the whole program smaller to make sure it fits on every screen
"fieldImg": "field.png", // Location of the field image used to plot
"linesPerCurve": 50 // How detailed a curve is, higher costs more performance
}