sivaelid / Heltec_AB02S_Mods

GNU General Public License v3.0
9 stars 3 forks source link

#include <CubeCell_TinyGPS++.h> issue #1

Open antontv opened 2 years ago

antontv commented 2 years ago

Hello!

I tried to run the configAir530_Vaelid.ino file and upload it to Arduino, but I get a compliation error in that in cannot compile the following inclusion:

include <CubeCell_TinyGPS++.h>

From what I could tell, the included header does not seem to exist on Arduinos standard libraries and I could not find it online. Could you explain where this file can be found?

Best regards

sivaelid commented 2 years ago

Hi Anton

The file you want is in the Downloaded file for the ube cell board. It normally lives in C:\Users\User\AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1. 3.0\libraries\OnBoardGPS\src

I would note that Heltec have changes the files a bit since I put that info out and you may need to reference the file as #include "CubeCell_TinyGPS++.h" try that. What were you trying to use the sketch for ?, as there may be just a small change to the example script now.

Simon

From: antontv @.> Sent: 08 November 2021 10:52 To: sivaelid/Heltec_AB02S_Mods @.> Cc: Subscribed @.***> Subject: [sivaelid/Heltec_AB02S_Mods] #include <CubeCell_TinyGPS++.h> issue (Issue #1)

Hello!

I tried to run the configAir530_Vaelid.ino file and upload it to Arduino, but I get a compliation error in that in cannot compile the following inclusion:

include <CubeCell_TinyGPS++.h>

From what I could tell, the included header does not seem to exist on Arduinos standard libraries and I could not find it online. Could you explain where this file can be found?

Best regards

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sivaelid/Heltec_AB02S_Mods/issues/1 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWHUJKU5THFDHTS2NRQ763UK 6TTXANCNFSM5HSK3FZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&m t=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=u tm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AHWHUJPVQHENUK2SQTBM7B3UK6TTXA5CNFS M5HSK3FZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PTMPMTA.gif

gabrielesanticchi commented 2 years ago

Hello, thank you for this repo mod. However, I get the same error just opening configAir530_Vaelid.ino as it is, also with

include "CubeCell_TinyGPS++.h"

I would like to know which libraries I am missing (also for the other sketch you uploaded: LoRaWan_OnBoardGPS_Air530_Vaelid.ino), because your previous answer was not clear for me. Thank you very much,

Gabriele

*** CODE ****

include

include "TinyGPS++.h"

include

include

include

HardwareSerial SerialGPS(2); //If GPS connected to G17 and G16, (0) if on TXD,RXD TinyGPSPlus gps;

unsigned long time_ms; double latitude, longitude, altitude;

void setup() { Serial.begin(57600);
SerialGPS.begin(9600); Serial.print("setup has just begun. Do not consider first 3 seconds. \n \n"); }

void loop() {

while(SerialGPS.available())
{   
    if(gps.encode(SerialGPS.read()))
    {
        String msg = SerialGPS.readStringUntil('\r');
        Serial.println(msg); //this works, even if data are 'raw' and not structured..
        latitude = gps.location.lat(),6; 
        longitude = gps.location.lat(),6;
        altitude = gps.altitude.meters(),6;
         Serial.print(latitude, 6); Serial.print("; "); //these three not! each print 0.00000
        Serial.print(longitude, 6); Serial.print("; "); 
        Serial.print(altitude, 6); Serial.println(" "); 
    }

}

}