rebooting crazyflie
Posted: Mon Jun 25, 2018 5:47 am
Hi!
from cflib.drivers.crazyradio import Crazyradio
import cflib.drivers.crazyradio
import time
import cflib.crtp
cflib.crtp.init_drivers(enable_debug_driver=False)
cr = Crazyradio()
address = [0xD8]
cr.set_channel(120)
cr.set_data_rate(cr.DR_2MPS)
cr.set_address((0xE7, 0xE7, 0xE7, 0xE7, address ))
cr.send_packet((0xFF, 0xFE, 0xFF ))
cr.send_packet((0xFF, 0xFE, 0xF0, 1 ))
I found the code to reboot or shut down the drones. This code works well when the drones are first turned on by the push of a button. However, running this code again after running example code like autonomousSequence.py will not reboot the drones. Also, when you run this code and then run the example code, you get an error in the example code. What's wrong with the code?
from cflib.drivers.crazyradio import Crazyradio
import cflib.drivers.crazyradio
import time
import cflib.crtp
cflib.crtp.init_drivers(enable_debug_driver=False)
cr = Crazyradio()
address = [0xD8]
cr.set_channel(120)
cr.set_data_rate(cr.DR_2MPS)
cr.set_address((0xE7, 0xE7, 0xE7, 0xE7, address ))
cr.send_packet((0xFF, 0xFE, 0xFF ))
cr.send_packet((0xFF, 0xFE, 0xF0, 1 ))
I found the code to reboot or shut down the drones. This code works well when the drones are first turned on by the push of a button. However, running this code again after running example code like autonomousSequence.py will not reboot the drones. Also, when you run this code and then run the example code, you get an error in the example code. What's wrong with the code?