Page 1 of 1

No Valid Solution for basestations

Posted: Tue Jun 23, 2020 1:06 pm
by s1mple
Hey :)

I'm following this guide ... _overview/. I installed opencv and numpy. I flashed the firmware with edited
But when I execute it returns an error: No valid solution for Basestation found.

Any ideas where the error comes from?

Re: No Valid Solution for basestations

Posted: Wed Jun 24, 2020 9:12 am
by kristoffer

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 ... 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

Re: No Valid Solution for basestations

Posted: Wed Jun 24, 2020 5:54 pm
by s1mple
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 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?

Re: No Valid Solution for basestations

Posted: Fri Jun 26, 2020 9:44 am
by tobias
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?

Re: No Valid Solution for basestations

Posted: Sat Jun 27, 2020 9:08 am
by s1mple
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 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.

Re: No Valid Solution for basestations

Posted: Mon Jun 29, 2020 8:59 am
by kimberly

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