Last active
July 30, 2020 00:49
-
-
Save duanebester/7431a7ba1b2d6dc34a83b139fdcee80a to your computer and use it in GitHub Desktop.
Arduino Definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SparkFun_Ublox_Arduino_Library.h> | |
#include <Arduino_LSM9DS1.h> | |
#include <Arduino_APDS9960.h> | |
#include <SPI.h> | |
#include <SD.h> | |
// SD Vars | |
File dataFile; | |
int chipSelect = 4; | |
// GPS Vars | |
SFE_UBLOX_GPS myGPS; // Connected via UART | |
long latitude = 0; | |
long longitude = 0; | |
long speed = 0; | |
byte satellites = 0; | |
int timeout = 50; | |
long lastGPSTime = 0; | |
// IMU Vars | |
float ax, ay, az; | |
float gx, gy, gz; | |
// Misc | |
bool DEBUG = true; | |
int counter = 0; | |
#define LEDR (22u) | |
#define LEDG (23u) | |
#define LEDB (24u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment