Page 1 of 1

Choosing a lighthouse TOC to help detect valid tracking.[SOLVED]

Posted: Mon Jan 11, 2021 6:37 am
by cafeciaojoe

I am looking for a lighthouse paramteter that I can use to determine if both lighthouses cannot see the cf. (in order to immediately land the cf after a certain number of secods of lost tracking)
I acknowledge that this may be a little more complicated that just choosing one parameter (perhaps due to whether or not the systemis using raw seeps or crossing beams, to be honest I do not know how to tell which one the cf is using)

I have tried loggin the x, y, z, from the lighthouse paramter (hoping that they would be nan when they do no see a beam) but all I got was 0.0? They were also 0 in the plotter.

code below....

Code: Select all

    lg_stab = LogConfig(name='lighthouse', period_in_ms=100)
    lg_stab.add_variable('lighthouse.x', 'float')
    lg_stab.add_variable('lighthouse.y', 'float')
    lg_stab.add_variable('lighthouse.z', 'float')
Cheers 8-)

Re: Choosing a lighthouse TOC to help detect valid tracking.

Posted: Mon Jan 11, 2021 1:47 pm
by kimberly

So those variables only work if you select the parameter 'lighthouse.method' to be 0. That is the crossing beams method, which will calculate the position already without interference of the kalmanfilter.

I guess it would be best to check out the raw angles which is called like this: 'lighthouse.angle0x' (or _LH2 if you use lighthouse v2) and see if the angle doesn't change. If the difference of the current timestep and the timestep before is zero, then it lost tracking. You might need to be not very strict on the landing part, maybe if it lost tracking for a second, then to initiate the landing.

Re: Choosing a lighthouse TOC to help detect valid tracking.

Posted: Tue Jan 12, 2021 7:03 am
by cafeciaojoe
Works well thanks !