41103C 26/27
Documentation for 41103C 1/3 for the 2026/2027 Vex V5 Season Override
Loading...
Searching...
No Matches
auton.hpp
1#pragma once
2#include "api.h"
3#include "odom.hpp"
4#include "hardware.hpp"
5
6void auton_faceHeading(float heading, int timeout_millis);
7void auton_driveDistance(int distance, int timeout_millis);
8void auton_driveToPoint(float targetX, float targetY, int timeout_millis);
9
10const float turnOutputPowerMod = 0.8f; // MUST BE LOWER THAN 1, MOTORS CANNOT BE OVERCLOCKED or 💀
11const float turnKp = 50.0f;
12const float turnKi = 0.8f;
13const float turnKd = 0.5f;
14
15extern float turnPastError;
16extern float turnPastHeading;
17extern float turnIntegral;
18
19const float driveKp = 5.0f;
20const float driveKi = 0.0f;
21const float driveKd = 0.0f;
22
23extern float drivePastError;
24extern float drivePastDError;
25extern float driveIntegral;
26extern Vector2 drivePastPos;
27extern int drivePastDist;
Definition helpers.hpp:20