Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:34 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Pico GPS

Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 08:53am 03 May 2023
Copy link to clipboard 
Print this post

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: Australia
Posts: 11
Posted: 09:14am 03 May 2023
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 3802
Posted: 09:38am 03 May 2023
Copy link to clipboard 
Print this post

  lew247 said  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)


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 Kingdom
Posts: 4042
Posted: 01:00pm 03 May 2023
Copy link to clipboard 
Print this post

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
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 11:55am 04 May 2023
Copy link to clipboard 
Print this post

  thwill said  Probably the first question that should be asked:

   "Which firmware version are you running Lewis ?"


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 Kingdom
Posts: 1702
Posted: 02:58pm 07 Oct 2023
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 3802
Posted: 03:10pm 07 Oct 2023
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024