![]() |
Forum Index : Microcontroller and PC projects : Updated Boat Computer
Page 1 of 3 ![]() ![]() |
|||||
Author | Message | ||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Following a request in this thread I have updated the Boat Computer BASIC program to V2. The full list of changes are: - You can now have over fifty Points of Interest. In the main selection screen you now use PREV and NEXT buttons to take you through the list of POIs. - The heading indicator and POI direction indicator are now suppressed when the boat is stationary. - Improved the rendering of the heading needle. - Removed the slash from the numeric zero character in one of the fonts. The new software can be downloaded from: http://geoffg.net/BoatComputer2.html#Downloads Geoff Geoff Graham - http://geoffg.net |
||||
Bill.b![]() Senior Member ![]() Joined: 25/06/2011 Location: AustraliaPosts: 235 |
Hi Geoff Tried to download the HEX file, It just opened as a text file when the download button was selected. Also what is the maximum number that can be displayed for km/h. It would seem to be 99km/h. I wish to use it in a car to indicate speed and direction therefore would require the display to indicate greater than 99. Bill In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Hi Bill, I went direct to Geoff's webpage for the BoatComputer2 and the Download section at the bottom has the correct files. Greg Edit: all running fine - in my office anyway. ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Bill, you probably have your browser set to open a HEX file as a text file. Use Save As instead. The maximum speed is not limited and it will display correctly up to at least 199 Km/h. I don't know where you got 99 Km/h from. Geoff Geoff Graham - http://geoffg.net |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Thanks for doing the changes Geoff. ![]() Greg |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Thanks Geoff 50 POI's is great. I had a problem with the old code in that if I set a POI to my current position it all worked fine until the unit was switched off. When it was switched on again it had lost it's memory (a bit like the operator). I will try the new code and report back. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Bill7300 Senior Member ![]() Joined: 05/08/2014 Location: AustraliaPosts: 159 |
My thanks too, Geoff Bill M Bill |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Loaded the new code, it runs but touch won't work. I connected to the console and did a GUI TEST TOUCH and all was OK. Reassembled the unit and it runs, reads direction and speed but touch wont work. Has anyone else tested OK. Paul. Edit... Just looked through the code, unfortunately I deleted the old code and can't compare. It seems as though Pin 15 has been used for T_IRQ but I am using a different Pin. Does this mean I have to change Pin 15 in the code to the one I am using. Maybe in the original code the SETTICK command was used for the touch interrupt? Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
OK changed the T_IRQ pin in the code to the one I used and TOUCH works OK. But now another problem. I tried changing POI 1 coordinates to HERE but when I touch SAVE the program freezes. So I tried to enter the coordinates and it lets me enter the degrees but when I touch the degrees symbol nothing happens. Unfortunately I cant get a signal in my workshop to see what is happening. The only way I can do that is to change the GPS module for one to which I can attach an antenna. That is the next step. 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: AustraliaPosts: 3292 |
Sorry about pin 15. The code should use this: SetPin Peek(Byte Peek(Word &H9D000090) + 23), INTL, TouchDown
Which will work with any IRQ pin. POI entry should be working OK. I am away from my test setup so I will have to try it out later. If you do not have a GPS you can put it into demo mode (touch centre on power up). Geoff Geoff Graham - http://geoffg.net |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Thanks Geoff. I was just about to post. I was using MM V.5.0 which worked OK with the original code I updated to 5.1 and all is OK. 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: AustraliaPosts: 3292 |
Ah, that would explain it. Geoff Geoff Graham - http://geoffg.net |
||||
Bill7300 Senior Member ![]() Joined: 05/08/2014 Location: AustraliaPosts: 159 |
Just to clarify, Geoff. Is the pin 15 fix you posted yesterday for Paul required with 5.1? If so, you will presumably have amended your software file? Bill Bill |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
@ Bill, I just checked Geoff's web site and he has not made the change and don't think he will. The Boat Computer as described in Silicon Chip is built on the Micromite LCD Backpack board that uses Pin 15 for T_IRQ. I happened to have my own backpack board and I have used Pin 2. There are 3 instances of SETPIN 15 in the code and you can just alter them for whatever Pin you use or use the line of code Geoff posted and it will work with any Pin. 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: AustraliaPosts: 3292 |
Yes, Paul you pretty much have it. The other factor is that I do not want to keep coming out with minor revisions - that creates confusion. If there is a need for a serious bug fix I will put out a new version and it will include this small tweak. In the meantime the solution is just to search and replace SETPIN 15. Geoff Geoff Graham - http://geoffg.net |
||||
Bill7300 Senior Member ![]() Joined: 05/08/2014 Location: AustraliaPosts: 159 |
All now clarified and understood, thanks Geoff and Paul. I'm using the Micromite Backpack, hence my confusion when your interchange occurred. Bill Bill |
||||
davematt Regular Member ![]() Joined: 27/09/2011 Location: AustraliaPosts: 55 |
Distance to POI. Like MikeB, I have a problem with this great little unit crashing and resetting when I try to navigate to a POI. For my location, (Gippsland, VIC) the initial POI positions cause an attempt to calc the square root of a negative number, and this causes the crash. Setting all POIs to 10 deg Lat and Lon 'fixed' the problem. Transposing Geoff's calculations into Excel produces the same error. Note that this will not be aparent in version 2 unless you disable the zero speed cutout in line 190. I would love to know where on the planet this issue arises, and where not. All in all, a nasty little bug... Cheers, David |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Ugh, are you saying David that the bug is still in V2 or is it "avoided"? I HATE bugs ![]() Geoff Geoff Graham - http://geoffg.net |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Geoff I haven't looked what formula you are using but these are ones I've used extensively and they seem bullet proof |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Yes, he has a great website and I have used his stuff often. To be honest I cannot remember where I got the calculations from but I thought it was from there. The annoying thing is that I spent a lot of time driving around testing the Boat Computer and there still could be an issue. Geoff Geoff Graham - http://geoffg.net |
||||
Page 1 of 3 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |