Xinyuan-LilyGO / LilyGO-T-A76XX

LilyGo A7670X A7608X SIM7670G series
MIT License
128 stars 57 forks source link

course data returns nothing #139

Closed katoury closed 1 month ago

katoury commented 2 months ago

Hi, Because I need to mention the course in my code, I have tried "SendLocationFromSMS_Use_TinyGPS.ino" example with adding "course", but it displays nothing but "course:0.00". course2 = gps.course.deg(); Any idea to get that data ? Thanks

lewisxhe commented 2 months ago

I don't have this problem. When I can't get it at the beginning, it will remain at 0 until I get it. image

katoury commented 2 months ago

@lewisxhe Hi, it seems the picture you sent back is not from the code I mentioned. Here the result of "SendLocationFromSMS_Use_TinyGPS.ino" 09:24:54.931 - MESSAGE: Longitude: -0....... Latitude:....... 09:24:54.931 -> UTC Date:2024/9/13 09:24:54.931 →> UTC Time:7:24:54 09:24:54.931 → Speed: 163.00Km/H 09:24:54.931 →> course: 0.00 09:24:54.931 -> 09:24:55.623 → Send sms message OK

the code I added : double course2 = gps.course.deg(); ...
msg_str += "course:"; msg_str += String(course2);

lewisxhe commented 2 months ago

If you want the course, then you should add some judgment and send the SMS only after getting the course

katoury commented 2 months ago

What do you mean by "then you should add some judgment " ??

lewisxhe commented 2 months ago

image

katoury commented 2 months ago

Ok I did it.. so I have to check what I have done wrong... I will be back to tell you if it works or not

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.