[SOLVED] Cfheadless Raspberry not functionning.

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

[SOLVED] Cfheadless Raspberry not functionning.

Post by Mitteau » Mon Apr 25, 2016 7:31 am

Hi
I installed cfheadless on a Raspberry Pi2 + latest raspbian.
But following Bitcraze wiki misc:hacks:raspberrypi, the crazyflie application and xboxdrv do not start up. error :
"bash: xbox360: command not found"
I verified: xboxdrv exists in /usr/bin and is executable.
Please find:
1/ the xbox360 script:

#!/bin/sh
if test "$ACTION" = "add"
then
/usr/bin/xboxdrv -d &
else
killall -9 xboxdrv
fi

I add -d because xpad is automaticly launched ar power up

2/ the cfheadless script:

#!/bin/sh
if test "$ACTION" = "add"
then
/usr/bin/sudo -u pi /home/pi/start_cfheadless &
echo $! > /tmp/cfheadless.pid
else
killall -9 cfheadless
if test -f /tmp/cfheadless.pid
then
PID=$(cat /tmp/cfheadless.pid)
kill -9 $PID
fi
fi

3/ the 20 last lines of log:

INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M]
INFO:cflib.crazyflie.mem:3 memories found
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie.mem:Updating content of memory 2
INFO:cflib.crazyflie.mem:Requesting new chunk of 11bytes at 0x0
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x0, status=0x0, data=(235, 0, 128, 0, 0, 188, 1, 35, 0, 14, 1)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 2
INFO:cflib.crazyflie.mem:--> HEADER OK
INFO:cflib.crazyflie.mem:Requesting new chunk of 17bytes at 0x8
INFO:cflib.crazyflie.mem:Done getting all the memories, start reading the OWs
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x8, status=0x0, data=(0, 14, 1, 9, 98, 99, 76, 101, 100, 82, 105, 110, 103, 2, 1, 66, 157)
INFO:cflib.crazyflie.mem:READING: We are still interested in request for mem 2
INFO:cflib.crazyflie.mem:--> ELEMENT OK
INFO:cflib.crazyflie.mem:OW 0DC7BE08000000D3 (BC:01): {'Board revision': 'B', 'Board name': 'bcLedRing'}
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x0, status=0x0, data=(235, 0, 128, 0, 0, 188, 1, 35, 0, 14, 1)
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x8, status=0x0, data=(0, 14, 1, 9, 98, 99, 76, 101, 100, 82, 105, 110, 103, 2, 1, 66, 157)
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x0, status=0x0, data=(235, 0, 128, 0, 0, 188, 1, 35, 0, 14, 1)
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x8, status=0x0, data=(0, 14, 1, 9, 98, 99, 76, 101, 100, 82, 105, 110, 103, 2, 1, 66, 157)
INFO:cflib.crazyflie.mem:READ: Mem=2, addr=0x8, status=0x0, data=(0, 14, 1, 9, 98, 99, 76, 101, 100, 82, 105, 110, 103, 2, 1, 66, 157)

But, when I push up the throttle, nothing happens.

Thank you for help !

Regards

Jean-Claude M.



Post Reply