|
Post by vasko on Aug 29, 2016 0:40:32 GMT
In case someone is planing to use arduino for boat navigation and other tasks - I've decided to share open source two of the core libraries in my electric dinghy outboard project : jeanneau.proboards.com/thread/4132/electric-outboard-engine-opinions-wantedarduino libraries: github.com/vtomanov/Gps64github.com/vtomanov/Thread64The GPS calculations in Gps64 may be more appealing as they are quite precise, uses 64bit floating point arithmetic ( non available on arduino) and added some trigonometric functions implemented using latest math theory discoveries in 3D graphics - as result on a arduino slow architecture in 150msec can be calculated precise distance between 2 GPS points with less then 1/2m precision (usually takes about 15sec.) The Thread64 brings preemptive multithreading on arduino with locking structures which enables some slow operations to be done in background asinchronously based on "producer->processor-> consumer" pattern
|
|
|
Post by MickeyB on Aug 29, 2016 7:09:47 GMT
Hi Vasko,
As a fellow coder, it is always nice to go through someones lines and follow their logic.
This is a great addition to the community - well done!
Mike
|
|
|
Post by vasko on Aug 29, 2016 20:17:34 GMT
Thanks Mike I'm going to publish separately also a full working example how to charge Li batteries properly with arduino controller:) which is is very useful for some of us who decide to go with Li batteries ... again a snipped from the engine project
|
|
|
Post by vasko on Aug 30, 2016 17:06:10 GMT
added full featured new example - e.g. using it you can build with arduino a marine fixed GPS for pennies similar to this model : ( all calculation and code in the example - just add the gps censor and display and send the data to the display instead of the serial - including reset of the starting point and simultaneous calculation for average speed, distance and bearing from starting point and current distance , speed and bearing from last point ) github.com/vtomanov/Thread64example : Thread64WithGps64Example.ino
|
|
|
Post by hoppy on Aug 30, 2016 19:07:57 GMT
I really need to make some time to learn coding for an Arduino or RaspberryPi.
What language do you use? I'm kind of keen to try Python.
|
|
|
Post by vasko on Aug 30, 2016 19:41:08 GMT
|
|
|
Post by Don Reaves on Aug 30, 2016 21:39:57 GMT
I really need to make some time to learn coding for an Arduino or RaspberryPi. What language do you use? I'm kind of keen to try Python. If you want to try Python, just load it on your PC and start playing with it. It's free, and the documentation is all available on-line.
|
|
|
Post by vasko on Aug 30, 2016 22:13:12 GMT
just of curiosity guys.. ( I write freely with detailed in depth knowledge on java, c/c++, c#, Python, PHP, JS, Shellscript, VB, VBA, ASM86 , AVR ASM, all SQL flavours, in the past had written on Turbo Pascal/Delphi, Modula2, GW Basic, Basic and ASM on Apple II/Z80 - and currently I lead a team of Hi-perf real-time financial software developers developing extreme perf software - shamefully mainly on java with zero gc:) - have build and designed two compiler and one programming language myself) and my enjoy my job greatly ... and I'm still puzzled why people choose things like Python - no offence it is easy in some extent , but I have always ended up to need to write some part in C/C++ and export it in Python and in the same time Python is basically C/C++ with reference counted pointers... e.g. just use boost and c++... I have read all the "why choose Python, X reasons why choose python" etc... , but still the only real reason that I can find is the its name has been inspired from Monthy Python
|
|
|
Post by hoppy on Aug 31, 2016 1:22:51 GMT
but still the only real reason that I can find is the its name has been inspired from Monthy Python This sounds as good a reason as any. I'm a MVS, Cobol, DB2 dinosaur and the main reason for Python, besides it's name, obviously, is that it's popular and before thinking about Arduino/RPi I had noticed that it is well supported on my Synology NAS.
|
|
|
Post by sailbleu on Aug 31, 2016 5:21:12 GMT
So sad this all sounds like Chinese to me , coding is definitely not my cup of tea . But I couldn't help looking at the furuno pic , let me show you another of my Taiwanees Matsutec AIS transponder ( receiver / transceiver) Sorry for the off topic. Strange and or scary no PS: Now you came to mention the source code , I'm still really in anticipation to see your outboard Vasco. I guess hardware is more my place to be Regards
|
|
|
Post by vasko on Aug 31, 2016 7:33:50 GMT
ah... my problem is always hardware... and indeed the hardware still requires some adjustment on the outboard - I have issue with H-Bridge that I use from time to time and need to fix the issue and also with compass it need calibration from time to time and this is annoying - I plan to scrap the compass and move to simulate it with GPS reading in shot periods ... and my BIG concern is the moulding and production - I'm not good in hardware production e.g. do not have experience with this will be a challenge...
|
|
|
Post by vasko on Aug 31, 2016 7:53:08 GMT
|
|
|
Post by Don Reaves on Aug 31, 2016 10:26:33 GMT
Python is basically C/C++ with reference counted pointers... e.g. just use boost and c++... I have read all the "why choose Python, X reasons why choose python" etc... , but still the only real reason that I can find is the its name has been inspired from Monthy Python I think we should try to avoid a religious argument about programming. Discussions of anchors are close enough for this forum. To suggest that Python is basically C++ is far from the truth. The fact that Python is interpreted and the syntax is extremely simple compared with C++ makes Python a very good candidate for small projects and prototyping, as long as speed of execution is not a big issue. Personally, C++ is my language of choice. But I find Python to be very useful as a complement to it.
|
|
|
Post by sailbleu on Aug 31, 2016 11:57:36 GMT
Gosh , this board is full of nerds. Regards
|
|
|
Post by vasko on Aug 31, 2016 14:11:56 GMT
yep no point going in deep discussion on which line the { should be
|
|
|
Post by Don Reaves on Aug 31, 2016 19:40:44 GMT
Gosh , this board is full of nerds. Regards We're all boat nerds! It's just that some of us are rather well-rounded in that regard.
|
|
|
Post by vasko on Sept 11, 2016 18:42:03 GMT
|
|