Author |
Message |
Topic: 2D array vs bootyfab |
snipsnip
Replies: 4
Views: 99
|
Forum: BASCOM-AVR Posted: Sun Mar 24, 2024 11:11 am Subject: 2D array vs bootyfab |
i do not see the point of the select case, you can calculate the index right?
if you do not want to multiply you can also use a DATA table with the offset. then use lookup() get the index and add acc ... |
Topic: 2D array vs bootyfab |
snipsnip
Replies: 4
Views: 99
|
Forum: BASCOM-AVR Posted: Sun Mar 24, 2024 10:15 am Subject: 2D array vs bootyfab |
Hi guys, I've been working on this...
Is there any meaningful advantage to this method compared to using a standard 2d array in regards to execution speed?
it's for a 30 x 30 table
select ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Mar 05, 2024 12:16 am Subject: Fuzzy Yacht Autopilot |
Thanks for that, very interesting thread. a shame it's locked.
The way fuzzy works with sets should be well suited for a genetic algorithm to tune and test?
Now I want to see if I can implement ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Mar 04, 2024 10:27 pm Subject: Fuzzy Yacht Autopilot |
Hi Snipsnip
I followed the lecture to get some understanding of the Fuzzy control principle, and found it very amusing (or how I should put it..)
The Fuzzification part is straightforward (well, ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Mar 04, 2024 12:01 pm Subject: Fuzzy Yacht Autopilot |
Here's where I'm at with the rule / inference block.
''/ -------------heading error / accel get merged and defuzzed to produce rudder rate of change---------------
''/ HeadingDeviation aka erro ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Feb 23, 2024 1:22 am Subject: Fuzzy Yacht Autopilot |
This is the basic outline of what I'm looking to implement..
https://www.youtube.com/watch?v=TReelsVxWxg
Go to around the 50 min mark for the nitty gritty
I'll be using something like these bel ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 21, 2024 2:45 pm Subject: Fuzzy Yacht Autopilot |
Hi Snipsnap,
I worked on an autopilot for my 10m sailboat some years ago.
Unfortunately I can not guide you along the Fuzzy road as I know nothing about it. Mine was based in PID.
I learnt that ... |
Topic: Fuzzy Yacht Autopilot |
snipsnip
Replies: 10
Views: 555
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Feb 19, 2024 11:38 pm Subject: Fuzzy Yacht Autopilot |
I know this is a forum for working code, and this is very much a work in progress, Sorry
Thought Id share a simple triangle membership function I'm working on. Just in case I'm way off course with ... |
Topic: point in polygon function and kml placemark test |
snipsnip
Replies: 2
Views: 3570
|
Forum: 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: 9730
|
Forum: 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: 841
|
Forum: 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: 841
|
Forum: 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
Cheers
Simon |
Topic: Config for extra UARTS 2560 |
snipsnip
Replies: 7
Views: 841
|
Forum: 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: 841
|
Forum: 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: 9730
|
Forum: 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 ... |
|