Lighthouse Yaw Offset

Discussions related to positioning systems where the position is calculated outside the Crazyflie and sent to the device using radio, including MoCap systems
Post Reply
HAW_IxD
Beginner
Posts: 4
Joined: Tue Dec 03, 2019 3:04 pm

Lighthouse Yaw Offset

Post by HAW_IxD »

Hello,

two of our lighthouse decks now have a yaw offset (no matter which drone they are on). Is there a way to correct this?

Thank you in advance

Sven
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Lighthouse Yaw Offset

Post by arnaud »

Hi,

The only things I can think about is if not all the sensors on the deck are working. Are you running the latest version of the Crazyflie firmware? (there has been a lighthouse deck update a while ago that fixed a sensor initialization bug).

What is the magnitude of the offset?
HAW_IxD
Beginner
Posts: 4
Joined: Tue Dec 03, 2019 3:04 pm

Re: Lighthouse Yaw Offset

Post by HAW_IxD »

Hi,

Thanks for the quick answer. Yes, the firmware is up to date. The deviation is about 30°and 20°.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Lighthouse Yaw Offset

Post by kristoffer »

I don't have a good explanation for this, and I would really like to understand what is happening.
Would it be possible for you to shoot a short video with one working deck and one with the yaw offset? Just a short sequence of taking off, hovering for a few seconds and land.
HAW_IxD
Beginner
Posts: 4
Joined: Tue Dec 03, 2019 3:04 pm

Re: Lighthouse Yaw Offset

Post by HAW_IxD »

Hi,
here a screenshot and two videos. To land the drone with the Lighthouse Deck with the offset does not work, because the drone loses its orientation completely with time.
YawOffset.PNG
Yaw Offset:
https://vimeo.com/377527011

Correct Yaw
https://vimeo.com/377527237
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Lighthouse Yaw Offset

Post by kristoffer »

Thanks for the videos!

It definitely looks weird. I looked at the code for the yaw estimation and it seems as we are not checking that we get valid data from all sensors, I think this could give the results in the video if one sensor is not working.
If this theory is correct it should be possible to detect by looking at the angle logs for the sensors, I would expect some angles to not change when moving the Crazyflie around in space.

There are 16 log variables , one for the horizontal and vertical sweep angles, for each sensor, for each basestation.
It should be enough to log for one basestation and one sweep direction though. Please set up logs and plot for
lighthouse.angle0x
lighthouse.angle0x_1
lighthouse.angle0x_2
lighthouse.angle0x_3
and check if they all change when moving around.
HAW_IxD
Beginner
Posts: 4
Joined: Tue Dec 03, 2019 3:04 pm

Re: Lighthouse Yaw Offset

Post by HAW_IxD »

I'm sorry, but I've only just gotten to try this.

In fact, one value does not change.
lighthouse-angle.PNG
This probably means that the decks are no longer usable?
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Lighthouse Yaw Offset

Post by kristoffer »

It unfortunately looks like one sensor is not working properly. Please send us an email on contact@bitcraze.io so we can sort out a replacement for you.
Post Reply