Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 65 matches
www.mcselec.com Forum Index
Author Message
  Topic: point in polygon function and kml placemark test
snipsnip

Replies: 2
Views: 1126

PostForum: Share your working BASCOM-AVR code here   Posted: Sat Nov 30, 2019 12:00 pm   Subject: point in polygon function and kml placemark test
This is a work in progress, it works but the poly point array must start and end with the same coords.
I'm having a hard time getting this to happen in the next loop. ie closing the polygon

taken ...
  Topic: GPS Functions
snipsnip

Replies: 27
Views: 5177

PostForum: Share your working BASCOM-AVR code here   Posted: Sun Nov 10, 2019 12:05 pm   Subject: GPS Functions
a few years later and just wrote this for spitting out basic kml info for google earth
just does pins, but enough for testing.

Sub genKML()
local a as byte

print "<?xml ...
  Topic: Config for extra UARTS 2560
snipsnip

Replies: 7
Views: 485

PostForum: BASCOM-AVR   Posted: Fri Nov 08, 2019 5:26 am   Subject: Re: Config for extra UARTS 2560
my bad.
  Topic: Config for extra UARTS 2560
snipsnip

Replies: 7
Views: 485

PostForum: BASCOM-AVR   Posted: Fri Nov 08, 2019 4:50 am   Subject: Config for extra UARTS 2560
Thanks guys,

Turns out it was the bootloader (arduino)
fuse bits etc.

I've dumped it and it's almost ok now Smile



Cheers
Simon
  Topic: Config for extra UARTS 2560
snipsnip

Replies: 7
Views: 485

PostForum: BASCOM-AVR   Posted: Thu Nov 07, 2019 9:50 am   Subject: Config for extra UARTS 2560
Thanks guys,

Ive copied the rs232buffer1 file from the samples directory
and moved the GPS input to com 1

but I'm still not getting any input to the serial buffer.

Could it have something to ...
  Topic: Config for extra UARTS 2560
snipsnip

Replies: 7
Views: 485

PostForum: BASCOM-AVR   Posted: Thu Nov 07, 2019 5:59 am   Subject: Config for extra UARTS 2560
Hi guys,
I'm resurrecting an old GPS project from a few years ago for a different product.

This new project uses UART #3 (the fourth one) as the comms port for the GPS data.
Uart #0 is a comms po ...
  Topic: GPS Functions
snipsnip

Replies: 27
Views: 5177

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Apr 17, 2015 8:26 am   Subject: GPS Functions
Can you tap into the NMEA data bus? If you could integrate wind speed and direction info it would be a lot easier to eliminate false alarms.

IE a false gps reading to the west whilst a westerly bl ...
  Topic: GPS Functions
snipsnip

Replies: 27
Views: 5177

PostForum: 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: 540

PostForum: 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 Laughing

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: 325

PostForum: 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: 1245

PostForum: 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: 5177

PostForum: 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: 1273

PostForum: 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: 416

PostForum: 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. Embarassed

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: 416

PostForum: 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 ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT + 1 Hour
Jump to: