All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexuser.c File Reference

Example of vexuser.c. More...

#include <stdlib.h>
#include "ch.h"
#include "hal.h"
#include "vex.h"

Functions

void vexUserSetup ()
 User setup. More...
 
void vexUserInit ()
 User initialize. More...
 
msg_t vexAutonomous (void *arg)
 Autonomous. More...
 
msg_t vexOperator (void *arg)
 Driver control. More...
 

Detailed Description

Example of vexuser.c.

Function Documentation

void vexUserSetup ( void  )

User setup.

The digital and motor ports can (should) be configured here.

void vexUserInit ( void  )

User initialize.

This function is called after all setup is complete and communication has been established with the master processor. Start other tasks and initialize user variables here

msg_t vexAutonomous ( void *  arg)

Autonomous.

This thread is started when the autonomous period is started

msg_t vexOperator ( void *  arg)

Driver control.

This thread is started when the driver control period is started