I recently bought two of the crazyflies and they are awsome! I used the xbox controller to control each and had lots of fun. And now that I feel I am string attached to my PC, I am considering switching one of my crazyflie into a master unit (i.e. controller) and the other one to be the salve.
Here is my idea, the master crazyflie will connect to the nrf24l01p chip and issue commands using its own gyroscope, accel, compass, and barometer reading.
So my idea is to power up the slave first, and then power up the master. Once both are powered up, I will raise the master from the ground level and as I raise it, this will increase the thrust of the other crazyflie. Same for pitch, roll, and yaw, they will be controlled from the master. That way, my hand movements will be the controller. Pretty much like android app.
To start, I located the following line in radiolink.c file, which according to the wireless chip, need to place the device of the master into PTX mode
Code: Select all
//Power the radio, Enable the DS interruption, set the radio in PRX mode nrfWrite1Reg(REG_CONFIG, 0x5E);
The thing is I feel that I am missing big part of the picture espcially with the wireless modification. so any hints on where to go next would be appreciated. I am planning to post a video flying the two using master/slave concept once its working!