Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

5 k lookup table
Goto page Previous  1, 2
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2479
Location: Queensland

australia.gif
PostPosted: Thu Jan 14, 2021 2:45 am    Post subject: Reply with quote

@ 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
View user's profile Visit poster's website
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2479
Location: Queensland

australia.gif
PostPosted: Thu Jan 14, 2021 3:15 am    Post subject: Reply with quote

This page is blank
_________________
Adrian Jansen
Computer language is a framework for creativity
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1902

blank.gif
PostPosted: Thu Jan 14, 2021 9:09 am    Post subject: Reply with quote

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
View user's profile
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2479
Location: Queensland

australia.gif
PostPosted: Thu Jan 14, 2021 10:37 pm    Post subject: Reply with quote

Hmm,

Measuring the position might be the harder of the several problems.

_________________
Adrian Jansen
Computer language is a framework for creativity
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1902

blank.gif
PostPosted: Fri Jan 15, 2021 9:03 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum