No Valid Solution for basestations

Topics related to the Lighthouse positioning system, configuration and use
Post Reply
s1mple
Beginner
Posts: 3
Joined: Tue Jun 23, 2020 11:46 am

No Valid Solution for basestations

Post by s1mple » Tue Jun 23, 2020 1:06 pm

Hey :)

I'm following this guidehttps://www.bitcraze.io/documentation/r ... _overview/. I installed opencv and numpy. I flashed the firmware with edited config.mk.
But when I execute get_bs_geometry.py it returns an error: No valid solution for Basestation found.

Any ideas where the error comes from?



kristoffer
Bitcraze
Posts: 273
Joined: Tue Jun 30, 2015 7:47 am

Re: No Valid Solution for basestations

Post by kristoffer » Wed Jun 24, 2020 9:12 am

Hi!

The error means that the angles from the lighthouse deck could not be converted into a position for the Crazyflie.

First thing to check is that you get angel data from the lighthouse deck.
Set up logging for lighthouse.angle0x and lighthouse.angle0y (see https://www.bitcraze.io/documentation/r ... t/#logging) and verify that the values change when moving the deck around.

If you don't get any angles, check that
1. you have compiled the firmware with the CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0
2. the base stations are set up correctly

s1mple
Beginner
Posts: 3
Joined: Tue Jun 23, 2020 11:46 am

Re: No Valid Solution for basestations

Post by s1mple » Wed Jun 24, 2020 5:54 pm

Hey :)

first of all thanks for the reply

So I checked and I seem to only get zeros for both values back. I also tripple checked the config.mk. It only contains the lh flag. Is anything else in there necessary? Can I somehow check if it really is used?
Also I thought I'd just mention the LEDs on the deck. while booting blue and red light up. After the rotor check the orange one is lights up additionally for a second. Then only blue remains.

regarding the setup Basestation setup: I use a single Basestation v1. It is set to channel b and the indicator LED is green. What else do I have to configure?

tobias
Bitcraze
Posts: 2013
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: No Valid Solution for basestations

Post by tobias » Fri Jun 26, 2020 9:44 am

Looks like another problem as the Crazyflie doesn't boot correctly. If you remove the LH-deck does if boot correctly then? Is the mounting direction correct for the LH-deck? Have you flashed the latest release FW?

s1mple
Beginner
Posts: 3
Joined: Tue Jun 23, 2020 11:46 am

Re: No Valid Solution for basestations

Post by s1mple » Sat Jun 27, 2020 9:08 am

I was talking about the LEDs on the Lighthouse Deck. The CFs LEDs light up as described in the getting started guide, so I assume it's booting correctly. I can also connect via Crazyradio or Phone and it flies as expected with and without the deck.

Yes I checked the mounting direction and I flash the firmware from the VM project folder, after running the update all projects script. I renamed the exampe config.mk and uncommented the lighthouse flag.
then I run CLEAN, CLOAD, FLASH using radio.
Everingen is successful. But after rebooting it seems to not recognize the deck.

kimberly
Bitcraze
Posts: 387
Joined: Fri Jul 06, 2018 11:13 am

Re: No Valid Solution for basestations

Post by kimberly » Mon Jun 29, 2020 8:59 am

Hi!

The LED sequence of the LH deck that you describe, does suggest that it is initialized properly. I assume that if you look in the console tab of the client, it does also say that it has detected the lighthouse deck?

Is this the first time that you used the lighthouse deck? It might be that the connection one of the light receiving sensors has been broken, since in the firmware, if it does not receive from one sensor, all other received angles are put on 0. That might be the cause of your problem.

Could you send a close up picture of the lighthouse deck, either on this thread or to contact@bitcraze.io?

Post Reply