globals.h 415 B

123456789101112131415161718192021222324252627
  1. #ifndef GLOBALS_H
  2. #define GLOBALS_h
  3. #include "TinyGPS.h"
  4. #include "Arduino.h"
  5. #include "spm4648.h"
  6. #include "MPU6050.h"
  7. #include "Servo.h"
  8. #include "ESC.h"
  9. #include "PID_v1.h"
  10. #include "math.h"
  11. #define GAS_PIN 6
  12. #define SERVO_PIN 3
  13. extern int gasVal, servoVal;
  14. extern unsigned long msAuto;
  15. void initServos();
  16. void setMotor(float val);
  17. void setServo(float val);
  18. extern MPU6050 mpu;
  19. extern Spm4648 spm;
  20. #endif