View previous topic :: View next topic |
Author |
Message |
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Jan 14, 2021 2:45 am Post subject: |
|
|
@ O-family
True, but I would hardly class 3D vector geometry as "advanced" Yes it needs some trigonometry, and possibly vector algebra, but these are easy in Bascom, and if you stick to single precision floating point ( about 6 digits of precision ), reasonably fast..
I have written programs to do such things to track a glider flight in realtime, with inputs from GPS, accelerometers, gyros and other sensors. Cycle time for a set of several hundred trig operations can be well under 100msec. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Jan 14, 2021 3:15 am Post subject: |
|
|
This page is blank _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Thu Jan 14, 2021 9:09 am Post subject: |
|
|
AdrianJ wrote: | You sre going to need that calculation anyway to create your data array, |
No, he won't:
autoguider wrote: | So the idea is to measure the position and put the data in a lookup table. |
|
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Jan 14, 2021 10:37 pm Post subject: |
|
|
Hmm,
Measuring the position might be the harder of the several problems. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Fri Jan 15, 2021 9:03 am Post subject: |
|
|
AdrianJ wrote: | Measuring the position might be the harder of the several problems. |
For rotational values a digital compass module will do, at least until the earth's magnetic field starts to fluctuate and reverse, but then problem's focus will shift anyway.
For elevation an angle/acceleration sensor is suitable, I would look out for IMU-quadrocopter hardware, BNO055 seems to be a nice one, breakout board https://www.adafruit.com/product/2472 |
|
Back to top |
|
|
|