Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:56 11 Nov 2025 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 : Boat Computer

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 10:15pm 19 Feb 2018
Copy link to clipboard 
Print this post

@ Geoff
I have a friend who has been using the Boat Computer regularly, it is only now that he has tried to change the name "POI 1" etc to another name. When deleting the name it deletes back until you reach the P in POI and then throws an error. I have a clumsy workaround by putting a space before the P in "POI " in line 89 but if you space back one too many it crashes with an error on line 685 "Error: 0 is invalid".
There is no hurry as I know you are busy. It would also be nice if the distance to POI changed to metres below say half a kilometre instead of reading decimals of a Km.
Thanks a million for all you have done.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 01:23am 20 Feb 2018
Copy link to clipboard 
Print this post

Thanks Paul. Both should be doable.
I will get back to you on it.

Geoff
Geoff Graham - http://geoffg.net
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 05:32am 20 Feb 2018
Copy link to clipboard 
Print this post

Thanks Geoff, while I have you, I wanted to run a larger screen and the only board I had was MMX with an SSD1963_4, but when I run the same code that runs on the 28 pin backpack I get an error:
  Quote  [1089] Function Atan2(y As float, x As float) As float
Error: Invalid identifier

Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10570
Posted: 07:29am 20 Feb 2018
Copy link to clipboard 
Print this post

Atan2 is a built in function in the MMX. Just delete the function in the boat computer code
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 07:43am 20 Feb 2018
Copy link to clipboard 
Print this post

Thanks Peter, I looked in the manual under functions and didn't see it there so I did a search of the MMX manual and it didn't show up.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10570
Posted: 07:47am 20 Feb 2018
Copy link to clipboard 
Print this post

Oops, I'll update the manual. Sorry


 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 09:39pm 20 Feb 2018
Copy link to clipboard 
Print this post

@ matherp
OK that problem sorted but there is another line
  Quote  SetPin Peek(Byte Peek(Word &H9D000090) + 23), INTL, TouchDown

do you know what the address is for the 100 pin MZ chip.
If too much trouble I can put up with the smaller screen.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 09:46pm 20 Feb 2018
Copy link to clipboard 
Print this post


Base address on MZ is 0x9d004000

so try this.


SetPin Peek(Byte Peek(Word &H9D004090) + 23), INTL, TouchDown

Regards
Gerry

F4 H7FotSF4xGT
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 11:17pm 20 Feb 2018
Copy link to clipboard 
Print this post

Thanks Gerry that seems OK but now this.
  Quote  [126] SetPin Peek(Byte Peek(Word &H9D004090) + 23), INTL, TouchDown
Error: Pin 17 is reserved on startup

If I am going to have to alter a lot of code to get this running I will give it a miss.
Paul.
Edit.
With this board I use OPTION TOUCH 19,17Edited by palcal 2018-02-22
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 02:10am 21 Feb 2018
Copy link to clipboard 
Print this post

You need to replace that whole line with
GUI INTERRUPT TouchDown
as that is how the MM+ and MMX set up the interrupt.
F4 H7FotSF4xGT
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 04:27am 21 Feb 2018
Copy link to clipboard 
Print this post

OK Thanks got it working OK.
Interestingly my original problem of not being able to delete the 'P' in 'POI'
is not evident when using the SSD1963 screen.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 11:35am 11 May 2018
Copy link to clipboard 
Print this post

  disco4now said   You need to replace that whole line with
GUI INTERRUPT TouchDown
as that is how the MM+ and MMX set up the interrupt.

Amazing what you find by searching previous posts.

Just hooked up my recently build SC +Explore 64 to the GPS output of Geoff's GPS Tracker (SC NOV 2013 which has BTW, been running in my car since I built it back then).

Got it working OK on a much simpler program by Geoff so decided to try the Boat Computer. Ran into the same GUI problems as mentioned in this thread. Many hours of playing around & looking for answers. Found this thread which provided the solution. Thanks.

Now to have a play around with a working GPS / GUI program.
BTW, I hate boats..

ChopperP
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025