moarfix
This commit is contained in:
parent
32d6e8514a
commit
53d5f47f7e
8 changed files with 7 additions and 7 deletions
|
|
@ -9,7 +9,7 @@
|
|||
// NeoPixel strip length, in pixels
|
||||
#define NUM_PIXELS 30
|
||||
|
||||
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__) || defined(NRF52840)
|
||||
#if defined(__SAMD21G18A__) || defined(__AVR_ATmega32U4__) || defined(NRF52840_XXAA)
|
||||
#define NEOPIXEL_PIN 5
|
||||
#define POWER_PIN 10
|
||||
#elif defined(__AVR_ATmega328P__)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ LSM303 compass;
|
|||
|
||||
#define LAT_LON_SIZE 311
|
||||
|
||||
float lat_lon[LAT_LON_SIZE][2] PROGMEM = {
|
||||
const float lat_lon[LAT_LON_SIZE][2] PROGMEM = {
|
||||
{40.767272, -73.993928},
|
||||
{40.719115, -74.006666},
|
||||
{40.711174, -74.000165},
|
||||
|
|
@ -475,7 +475,7 @@ void loop() // run over and over again
|
|||
//Serial.print("Altitude: "); Serial.println(GPS.altitude);
|
||||
//Serial.print("Satellites: "); Serial.println((int)GPS.satellites);
|
||||
compass.read();
|
||||
int heading = compass.heading((LSM303::vector){0,-1,0});
|
||||
int heading = compass.heading((LSM303::vector<int16_t>){0,-1,0});
|
||||
Serial.print("Heading: ");
|
||||
Serial.println(heading);
|
||||
if ((calc_bearing(fLat, fLon, targetLat, targetLon) - heading) > 0) {
|
||||
|
|
@ -639,8 +639,8 @@ unsigned long calc_dist(float flat1, float flon1, float flat2, float flon2)
|
|||
int find_closest_location(float current_lat, float current_lon)
|
||||
{
|
||||
int closest = 0;
|
||||
unsigned long minDistance = -1;
|
||||
unsigned long tempDistance;
|
||||
signed long minDistance = -1;
|
||||
signed long tempDistance;
|
||||
for (int i=0; i < LAT_LON_SIZE; i++) {
|
||||
float target_lat = pgm_read_float(&lat_lon[i][0]);
|
||||
float target_lon = pgm_read_float(&lat_lon[i][1]);
|
||||
|
|
@ -729,7 +729,7 @@ void GoForward (uint32_t c, uint8_t wait) {
|
|||
|
||||
// Slightly different, this makes the rainbow equally distributed throughout
|
||||
void rainbowCycle(uint8_t wait) {
|
||||
uint16_t i, j;
|
||||
uint16_t i;
|
||||
|
||||
//for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
|
||||
for(i=0; i< 10; i++) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
depends=Adafruit ILI9341, Adafruit BusIO, SD, Adafruit NeoPixel, Adafruit VS1053 Library, Adafruit BluefruitLE nRF51, Adafruit seesaw Library, Ethernet, Adafruit IO Arduino, FastLED, Adafruit LiquidCrystal, Adafruit SoftServo, TinyWireM, Adafruit AM radio library, WaveHC, Adafruit LED Backpack Library, MAX31850 OneWire, Adafruit VC0706 Serial Camera Library, RTClib, Adafruit SleepyDog Library, Adafruit Thermal Printer Library, Adafruit Zero I2S Library, Adafruit EPD, Adafruit SSD1351 library, Adafruit FONA Library, Adafruit Motor Shield V2 Library, Adafruit NeoMatrix, Adafruit Soundboard library, Adafruit Circuit Playground, ArduinoJson, Adafruit TCS34725, Adafruit Pixie, Adafruit GPS Library, TinyGPS, WiFi101, Adafruit DotStar, Adafruit Si7021 Library, Adafruit WS2801 Library, Mouse, Keyboard, Time, IRremote, Adafruit LSM9DS0 Library, Adafruit Arcada Library, MIDIUSB, PubSubClient, Adafruit LIS2MDL, Adafruit NeoPXL8, Adafruit MCP23017 Arduino Library, Adafruit MLX90640, LiquidCrystal, Adafruit NeoTrellis M4 Library, RGB matrix Panel, Adafruit MLX90614 Library, Adafruit RGB LCD Shield Library, MAX6675 library, Adafruit MP3, Adafruit Keypad, Adafruit Arcada GifDecoder, Keypad, Neosegment, Encoder, Adafruit TiCoServo, Adafruit Trellis Library, FauxmoESP, Adafruit LSM303 Accel, Adafruit LSM303DLH Mag, Adafruit LSM303DLHC, CapacitiveSensor, Adafruit Zero PDM Library, Adafruit DMA neopixel library, elapsedMillis, DST RTC, Adafruit SHARP Memory Display, Adafruit SPIFlash, BSEC Software Library, WiiChuck, Adafruit DPS310, Adafruit AHTX0, RotaryEncoder, Adafruit MCP9808 Library, LSM303, Adafruit Protomatter
|
||||
depends=Adafruit ILI9341, Adafruit BusIO, SD, Adafruit NeoPixel, Adafruit VS1053 Library, Adafruit BluefruitLE nRF51, Adafruit seesaw Library, Ethernet, Adafruit IO Arduino, FastLED, Adafruit LiquidCrystal, Adafruit SoftServo, TinyWireM, Adafruit AM radio library, WaveHC, Adafruit LED Backpack Library, MAX31850 OneWire, Adafruit VC0706 Serial Camera Library, RTClib, Adafruit SleepyDog Library, Adafruit Thermal Printer Library, Adafruit Zero I2S Library, Adafruit EPD, Adafruit SSD1351 library, Adafruit FONA Library, Adafruit Motor Shield V2 Library, Adafruit NeoMatrix, Adafruit Soundboard library, Adafruit Circuit Playground, ArduinoJson, Adafruit TCS34725, Adafruit Pixie, Adafruit GPS Library, TinyGPS, WiFi101, Adafruit DotStar, Adafruit Si7021 Library, Adafruit WS2801 Library, Mouse, Keyboard, Time, IRremote, Adafruit LSM9DS0 Library, Adafruit Arcada Library, MIDIUSB, PubSubClient, Adafruit LIS2MDL, Adafruit NeoPXL8, Adafruit MCP23017 Arduino Library, Adafruit MLX90640, LiquidCrystal, Adafruit NeoTrellis M4 Library, RGB matrix Panel, Adafruit MLX90614 Library, Adafruit RGB LCD Shield Library, MAX6675 library, Adafruit MP3, Adafruit Keypad, Adafruit Arcada GifDecoder, Keypad, Neosegment, Encoder, Adafruit TiCoServo, Adafruit Trellis Library, FauxmoESP, Adafruit LSM303 Accel, Adafruit LSM303DLH Mag, Adafruit LSM303DLHC, CapacitiveSensor, Adafruit Zero PDM Library, Adafruit DMA neopixel library, elapsedMillis, DST RTC, Adafruit SHARP Memory Display, Adafruit SPIFlash, BSEC Software Library, WiiChuck, Adafruit DPS310, Adafruit AHTX0, RotaryEncoder, Adafruit MCP9808 Library, LSM303, Adafruit Protomatter, HID-Project
|
||||
|
|
|
|||
Loading…
Reference in a new issue