headless connection failure

Post here to get support
Mitteau
Expert
Posts: 145
Joined: Fri Jan 29, 2016 6:00 am

headless connection failure

Postby Mitteau » Sat Jul 15, 2017 3:12 pm

Hello everybody
I use raspberry/raspbian command unit to pilot a crazyflie 2, as in the wiki. I use headless client with some modifications.
With or without modification, radio connection is interrupted in case of shock. This happens rather often and I have to disconnect and reconnect the radio dongle every time. This is boring...
I would like to have a button on the joystick to reconnect the cf2.
Thanks
Jean-Claude
This does not happen with cfclient.



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

Re: headless connection failure

Postby arnaud » Mon Jul 17, 2017 8:53 am

Hi Jean-claude,

If you know a bit of python, you could implement this functionality in the headless client itself. A maybe easier way could be to make another script that kills and restarts the headless client when a button is pressed on the gamepad (I just tested and, on Linux, it is possible to read a joystick simultaneously from two programs).

It is interesting that you observe different behaviour from the headless and GUI client, are you running the same version on both sides? It should be possible to have both client behaving the same way.

/Arnaud

Mitteau
Expert
Posts: 145
Joined: Fri Jan 29, 2016 6:00 am

Re: headless connection failure

Postby Mitteau » Tue Jul 18, 2017 7:53 am

Hello Arnaud
Yes, I am, both versions are the latest at date 1st of july included. I implemented a button which connects and disconnects radio link. Nevertheless, when radio link fails, this button has no action.
Is there a security which stops radio link in case of high acceleration? I doubt it is an electrical failure, for this does not happen with gui client and happens form the beginning of my installation of headless software, with a completely new cf2.
Jean-Claude

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

Re: headless connection failure

Postby arnaud » Tue Jul 18, 2017 8:28 am

Hi,
No there is no such security with acceleration (at least not on purpose). There is a radio watchdog that will cut the link if threr is too many packet lost, I assume this is what is kicking-in. Do you have a log of why the connection is stopping?

FYI, this radio watchdog is there: https://github.com/bitcraze/crazyflie-l ... er.py#L498. You could try setting TRIES_BEFORE_DISCON to a higher number to see if that helps.

Mitteau
Expert
Posts: 145
Joined: Fri Jan 29, 2016 6:00 am

Re: headless connection failure

Postby Mitteau » Thu Jul 20, 2017 6:32 am

Hello,
No, I have not set the parameter debug logfile active. I will do next time.
Jean-Claude


Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest