![]() |
Forum Index : Microcontroller and PC projects : Pico GPS
Author | Message | ||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Can anyone tell me why I get this [245] Text 280, 100, GPS(TRACK) , LB, 3, 1, RGB(White) Error : Expected a string when I try to print the track on the display but this works and displays the track on the console? Text GPS(TRACK) Also The Manual states: The sentences interpreted are GPRMC, GNRMC, GPCGA and GNCGA What is GPCGA? I can only find GPGGA? Also is GPS(TRACK) Course over ground in degrees? While I'm here: I'm using an ili9341 display but I can only get RGB(GREEN) RGB(RED) RGB(BLUE) RGB(WHITE) to display Is there any reason for this? None of the other rgb shortcodes work GUI TEST LCDPANEL works and displays all the colours The example I tried it with that doesn't work *for me* is Function display_colour%() If state% = STATE_STARTING% Or state% = STATE_RESTARTING% Then display_colour% = Rgb(White) ElseIf stopped_or_waking%(state%) Then ' We should never actually get to this point as we don't show the display ' at all under these conditions. ' display_colour% = Rgb(Black) backlight 0 'Backlight Off ElseIf state% = STATE_STOPPING% Or Not gps_valid% Then display_colour% = Rgb(Green) ELSEIf speed! > Choice(mph_flag%, 61, 101) and speed! < Choice(mph_flag%, 71, 121) then ' ORANGE if Speed is 61Mph/101Kph or more display_colour% = Rgb(blue) ElseIf speed! > Choice(mph_flag%, 71, 121) Then ' RED if Speed is 71Mph/121Kph or more display_colour% = Rgb(Red) Else display_colour% = Rgb(Green) endif EndIf End Function If I try and use any of the other RGB shortcodes it stays lower case and doesn't work, if I type it in upper case it still doesn't work If I use the RGB number such as RGB(255, 165, 0) it's ignored and uses the previous colour. Edited 2023-05-03 18:54 by lew247 |
||||
VK2CBH Newbie ![]() Joined: 18/08/2014 Location: AustraliaPosts: 11 |
Lew247 I believe that GPCGA and GNCGA are typos. They should be GPGGA and GNGGA. Cheers Brett |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I guess the 1st TEXT wants GPS(TRACK) as a string. E.g. using FORMAT$() I think the 2nd TEXT should flag an error. John |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Probably the first question that should be asked: "Which firmware version are you running Lewis ?" You should probably update to 5.07.07, there is a pretty-good, not-quite release here: https://www.thebackshed.com/forum/uploads/matherp/2023-05-02_193800_PicoMite.zip But note it isn't actually the officially blessed "Release" despite having a release version number. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Sorry I should have said I am using PicoMiteV5.07.07RC7 I found the answer to one part of my question I had to use Text 280, 100, STR$(GPS(TRACK)) , LB, 3, 1, Rgb(White) Peter is GPGGA decimal degrees over ground? and if the CPU is sleeping, can the touch interupt still work? For instance if I was using an ili9341 with touch, Could I tell the cpu to wake on touch? |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Peter or anyone* GPS(LATITUDE) Returns the latitude in degrees as a floating point number, values are negative for South of equato GPS(LONGITUDE) Returns the longitude in degrees as a floating point number, values are negative for West of the meridian Are these degrees and minutes or decimal degrees? |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I expect they'll be degrees, i.e. say you got 12.5 it would be 12 degrees plus 0.5 of a degree, being 30 minutes (0.5 * 60). John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |