Page 1 of 1

Getting distance from the base station

Posted: Fri Dec 04, 2020 2:58 am
by amathuri
Is there a way to compute how far is Crazyfile from its base station? And, a way to navigate back to the station?

Re: Getting distance from the base station

Posted: Fri Dec 04, 2020 10:58 am
by kimberly
I guess you could subtract the lighthouse geometry (in lighthouse_core.c) from the current state estimate? Or do you want to do a more direct measurement based on the sweepangles of the basestation?

Re: Getting distance from the base station

Posted: Fri Dec 04, 2020 5:34 pm
by amathuri
Does it need a particular type of deck for it to work?
I want to see if I can write an algorithm for Crazyfile to navigate back to a fixed location.

Re: Getting distance from the base station

Posted: Mon Dec 07, 2020 10:17 am
by kristoffer
If you are using the lighthouse system you need a lighthouse deck (https://store.bitcraze.io/collections/d ... oning-deck) and preferably 2 lighthouse base stations.
In this case you would know the position all the time and returning to the starting point would be as simple as a goto.