From c3b516ee1f6e0d317e629ba95abf4ac0cd94f534 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 10 Feb 2016 14:28:16 -0500 Subject: revised everything --- include/zephyr.h | 88 -------------------------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 include/zephyr.h (limited to 'include/zephyr.h') diff --git a/include/zephyr.h b/include/zephyr.h deleted file mode 100644 index 11f922f..0000000 --- a/include/zephyr.h +++ /dev/null @@ -1,88 +0,0 @@ -#ifndef ZEPHYR_H_ -#define ZEPHYR_H_ - -#include - -#define PI 3.14159265L - -#define APPLY_THRESH(n,t) if(n < t && n > -t){ n = 0;} - -/* - * Comment to disable LCD support. -*/ - -#define LCD_PORT uart1 - -#define LCD_RATE 500 - -#ifdef LCD_PORT -#endif // LCD_PORT - -/* - * Comment to disable gyro support. -*/ - -#define GYRO_PORT 2 - -#ifdef GYRO_PORT - -void zGyroInit(void); -int zGyroGet(void); -void zGyroReset(void); - -#endif // GYRO_PORT - -/* - * Comment to disable IME support. -*/ - -#define IME_ENABLE - -#ifdef IME_ENABLE - -void zIMEInit(void); - -#endif // IME_ENABLE - -/* - * DRIVE_NORMAL will override tank drive options. -*/ - -#define DRIVE_JOY 1 -#define DRIVE_THRESHOLD 10 - -#define DRIVE_NORMAL 3 - -//#define DRIVE_TANK_LEFT 3 -//#define DRIVE_TANK_RIGHT 2 - -#define zJoyDigital(j,g,b) joystickGetDigital(j,g,b) -#define zJoyAnalog(j,a) joystickGetAnalog(j,a) - -void zMotorSet(const char *, // Motor Name - int, // Desired Speed - unsigned int // Caller ID - ); -char zMotorGet(const char *); // Motor Name - -void zMotorTake(const char *,unsigned int); -void zMotorReturn(const char *); - -#ifdef IME_ENABLE - -int zMotorIMEGet(const char *); // Motor Name -int zMotorIMEGetVelocity(const char *); // Motor Name -bool zMotorIMEReset(const char *motor); - -#endif // IME_ENABLE - -void zDriveUpdate(void); - -char zGetDigitalMotorSpeed(unsigned char, // Joystick No. - unsigned char, // Button Group - unsigned char, // Positive Button - unsigned char, // Negative Button - char // Desired Speed - ); - -#endif // ZEPHYR_H_ -- cgit v1.2.3