LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
main.h File Reference

Contains common definitions and header files used throughout your PROS project. More...

Go to the source code of this file.

Macros

#define PROS_USE_SIMPLE_NAMES
 If defined, some commonly used enums will have preprocessor macros which give a shorter, more convenient naming pattern.
 
#define PROS_USE_LITERALS
 If defined, C++ literals will be available for use.
 

Functions

void autonomous (void)
 Prototypes for the competition control tasks are redefined here to ensure that they can be called from user code (i.e.
 
void initialize (void)
 
void disabled (void)
 
void competition_initialize (void)
 
void opcontrol (void)
 

Detailed Description

Contains common definitions and header files used throughout your PROS project.

Copyright (c) 2017-2021, Purdue University ACM SIGBots. All rights reserved.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Definition in file main.h.

Macro Definition Documentation

◆ PROS_USE_LITERALS

#define PROS_USE_LITERALS

If defined, C++ literals will be available for use.

All literals are in the pros::literals namespace.

For instance, you can do 4_mtr = 50 to set motor 4's target velocity to 50

Definition at line 35 of file main.h.

◆ PROS_USE_SIMPLE_NAMES

#define PROS_USE_SIMPLE_NAMES

If defined, some commonly used enums will have preprocessor macros which give a shorter, more convenient naming pattern.

If this isn't desired, simply comment the following line out.

For instance, E_CONTROLLER_MASTER has a shorter name: CONTROLLER_MASTER. E_CONTROLLER_MASTER is pedantically correct within the PROS styleguide, but not convienent for most student programmers.

Definition at line 27 of file main.h.

Function Documentation

◆ autonomous()

void autonomous ( void  )

Prototypes for the competition control tasks are redefined here to ensure that they can be called from user code (i.e.

calling autonomous from a button press in opcontrol() for testing purposes).

◆ competition_initialize()

void competition_initialize ( void  )

◆ disabled()

void disabled ( void  )

◆ initialize()

void initialize ( void  )

◆ opcontrol()

void opcontrol ( void  )