Author |
Message |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Apr 15, 2015 6:08 pm Subject: GPS Functions |
I live on my boat now and was looking to make one of these. Any more work done on this?
Thanks
Hi mate, not much at the moment - working on the hardware side of things.
So you getting nervous ... |
Topic: What is better - a Dimensioned variable or a local variable? |
snipsnip
Replies: 4
Views: 637
|
Forum: BASCOM-AVR Posted: Sun Mar 29, 2015 8:59 am Subject: What is better - a Dimensioned variable or a local variable? |
I'm still learning all this stuff - but anyway here's my 2 cents...
It all depends
If you're low on memory locals will help.
globals are faster, but a nightmare to keep track of.
wha ... |
Topic: Pset to Line |
snipsnip
Replies: 3
Views: 476
|
Forum: BASCOM-AVR Posted: Sun Mar 15, 2015 2:32 pm Subject: Pset to Line |
you should be able to mod something from here..
http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
copied from above.
plotLine(x0,y0, x1,y1)
dx=x1-x0
dy=y1-y0
D = 2*dy - d ... |
Topic: 12 Volt Car battery charger with ADC |
snipsnip
Replies: 13
Views: 1423
|
Forum: BASCOM-AVR Posted: Wed Mar 11, 2015 12:45 pm Subject: 12 Volt Car battery charger with ADC |
Try not using CLS, instead just print extra spaces to over write the longest text ie "hello world" will be replaced with "gone ........... "(dots are spaces)
CLS Takes a long time!!
Also - why ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Mar 04, 2015 2:54 pm Subject: GPS Functions |
another basic one - returns the difference between the last and current headings.
doesn't give a direction (WIP) just returns the angle.
Function Deviation(starthead As String)as String ... |
Topic: C map function |
snipsnip
Replies: 5
Views: 4103
|
Forum: Share your working BASCOM-AVR code here Posted: Sat Feb 28, 2015 2:09 am Subject: C map function |
just want to say thanks, a handy function.
I was trying to figure out how to do this, had smoke coming out my ears.
Good for GLCD's - Should make writing a GPS graphical track log viewer easy. ... |
Topic: problem with string / function |
snipsnip
Replies: 3
Views: 717
|
Forum: BASCOM-AVR Posted: Thu Feb 26, 2015 10:04 am Subject: problem with string / function |
Thanks,
Yep My bad Had a temp variable too small to accept the return.
I seriously spent MANY MANY hours checking the program, I knew to look for this problem as the #1 culprit.
and its ... |
Topic: problem with string / function |
snipsnip
Replies: 3
Views: 717
|
Forum: BASCOM-AVR Posted: Thu Feb 26, 2015 6:49 am Subject: problem with string / function |
Hi all,
I've got a problem with a function that returns a string of 21 characters. Works ok with 20 characters.
For some reason when the string is 21 chrs long an extra (null) "thingy" is added to i ... |
Topic: passing string or value to funtion. |
snipsnip
Replies: 3
Views: 554
|
Forum: BASCOM-AVR Posted: Wed Feb 25, 2015 2:01 am Subject: passing string or value to funtion. |
Hi Adrian,
Thanks for the reply - I'm just trying to offload the "string to val" and "val to string" conversions to
the called functions rather than the main program loop.
Not a big deal, just ... |
Topic: passing string or value to funtion. |
snipsnip
Replies: 3
Views: 554
|
Forum: BASCOM-AVR Posted: Tue Feb 24, 2015 9:56 pm Subject: passing string or value to funtion. |
Hi all,
I've got a function that I want to accept either a string or value passed to it.
Question is there an easy way to figure out what data type a variable is?
I'm thinking of using overla ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Feb 24, 2015 12:47 am Subject: GPS Functions |
odometer
pretty much working - matches car odo (+/-) 200m over a 32k drive
Function Odo(startlat As Single , Startlon As Single , Startalt As String ) As String
Local Tempstring As St ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Feb 24, 2015 12:32 am Subject: GPS Functions |
Day, Time and date stamp.
Function Timestamp(timezone As Word , Plusneg As Byte)as String
Local X As Byte
Local Timez As String * 8 : Local Datez As String * 8 : Local Dayz As S ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Feb 24, 2015 12:10 am Subject: GPS Functions |
I still need to decide on std mega128 (4k ) with an external usb bridge or a USB1287 cpu with more memory ( 8 k ) and internal USB - any feedback ?
Yeah, but what about the 2561 and an exter ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Feb 23, 2015 1:45 am Subject: GPS Functions |
Hi nicofer,
nice work
Are you going to be selling these? put me down for a couple.
Also
what speed are you running the gtop comms at? I'm using same module but
I cant get it to work at ... |
Topic: GPS Functions |
snipsnip
Replies: 27
Views: 9730
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Feb 20, 2015 6:26 am Subject: GPS Functions |
just another basic function.
converts Knots (string) to KPH(string) 2 decimal points with a trailing "Kph"
Function Speed(knots As String)as String
Local Oput As String * 10 : Loca ... |
|