HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
main.h File Reference
#include "api.h"

Go to the source code of this file.

Macros

#define PROS_USE_SIMPLE_NAMES
 
#define PROS_USE_LITERALS
 

Functions

void simulation (void)
 Entry point for the simulation environment.
 
void autonomous (void)
 Autonomous phase entry point.
 
void initialize (void)
 Initialization phase entry point.
 
void disabled (void)
 Disabled phase entry point.
 
void competition_initialize (void)
 Competition initialization phase entry point.
 
void opcontrol (void)
 Operator control phase entry point.
 

Macro Definition Documentation

◆ PROS_USE_SIMPLE_NAMES

#define PROS_USE_SIMPLE_NAMES

Definition at line 4 of file main.h.

◆ PROS_USE_LITERALS

#define PROS_USE_LITERALS

Definition at line 6 of file main.h.

Function Documentation

◆ simulation()

void simulation ( void  )

Entry point for the simulation environment.

Executed via Python tools/sim_auton.py. Use this to simulate paths visually prior to testing on the actual robot.

◆ autonomous()

void autonomous ( void  )

Autonomous phase entry point.

Runs the robot's autonomous code. This is executed once during the autonomous period of a competition.

◆ initialize()

void initialize ( void  )

Initialization phase entry point.

Runs immediately upon startup. Used for sensor calibration, device initialization, etc.

◆ disabled()

void disabled ( void  )

Disabled phase entry point.

Runs when the robot is disabled (either by competition switch or field control). Useful to ensure motors are stopped safely.

◆ competition_initialize()

void competition_initialize ( void  )

Competition initialization phase entry point.

Runs after initialize(), before autonomous or opcontrol phases, but only if connected to a competition switch.

◆ opcontrol()

void opcontrol ( void  )

Operator control phase entry point.

Runs the robot's driver control code. Contains the main loop that reads joystick values and updates the drivetrain and subsystems.