Initial commit
This commit is contained in:
19
include/robot-config.h
Normal file
19
include/robot-config.h
Normal file
@ -0,0 +1,19 @@
|
||||
using namespace vex;
|
||||
|
||||
extern brain Brain;
|
||||
|
||||
// VEXcode devices
|
||||
extern drivetrain Drivetrain;
|
||||
extern motor LiftMotor;
|
||||
extern motor LiftMotor2;
|
||||
extern motor TiltMotor;
|
||||
extern controller Controller1;
|
||||
extern motor IntakeR;
|
||||
extern motor IntakeL;
|
||||
|
||||
/**
|
||||
* Used to initialize code/tasks/devices added using tools in VEXcode Text.
|
||||
*
|
||||
* This should be called at the start of your int main function.
|
||||
*/
|
||||
void vexcodeInit( void );
|
26
include/vex.h
Normal file
26
include/vex.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Module: vex.h */
|
||||
/* Author: Vex Robotics */
|
||||
/* Created: 1 Feb 2019 */
|
||||
/* Description: Default header for V5 projects */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
//
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "v5.h"
|
||||
#include "v5_vcs.h"
|
||||
|
||||
#include "robot-config.h"
|
||||
|
||||
#define waitUntil(condition) \
|
||||
do { \
|
||||
wait(5, msec); \
|
||||
} while (!(condition))
|
||||
|
||||
#define repeat(iterations) \
|
||||
for (int iterator = 0; iterator < iterations; iterator++)
|
Reference in New Issue
Block a user