Initial commit

This commit is contained in:
Cole Deck
2020-02-27 12:19:58 -06:00
commit c05b9462ad
14 changed files with 4417 additions and 0 deletions

19
include/robot-config.h Normal file
View 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
View 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++)