Windows 10 (phone & pc) app!
Posted: Sat Feb 20, 2016 11:18 pm
Hey Crazyfliers
I wrote a windows 10 UAP app for controlling the crazyflie 2.0 from a bluetooth 4.0 enabled phone or PC. It's pretty barebones and simply gets the job done for flying with no real bells and whistles on top. Also, I spend most of my time writing firmware and embedded code, so you'll notice the UI is very...basic.
In order to use this there's a pre-requisite: The current implementation of the NRF51 firmware doesn't support bonding/pairing. Windows doesn't support establishing direct connections with non-bonded devices. So, I implemented bonding/pairing in the NRF51 firmware. You can find the code here (code is in the "nrf_pairing" branch -- you'll need to build & flash it yourself):
https://github.com/theseankelly/crazyfl ... rf_pairing
And here's the app code (again, you'll need to build it yourself and your phone/pc will need to be put into developer mode to deploy. I don't have plans to deal with figuring out how to deploy the app to the windows store). Grab VS 2016 Express (free) and build/deploy from there. (Pair with the crazyflie first -- it's discoverable by default when you turn it on).
https://github.com/theseankelly/crazyfl ... uap-client
Like I said, it's enough to get the job done for flying, but is missing some big things:
- no support for OTA firmware update
- no support for changing flight settings (fixed at 80% max thrust, 30% pitch/roll, and 200deg/s yaw).
- joysticks are not configurable (left stick is thrust and yaw, right stick is pitch and roll)
- no plumbing of telemetry, voltage or signal strength
- exception handling and error reporting is nonexistent
Enjoy!
Sean
I wrote a windows 10 UAP app for controlling the crazyflie 2.0 from a bluetooth 4.0 enabled phone or PC. It's pretty barebones and simply gets the job done for flying with no real bells and whistles on top. Also, I spend most of my time writing firmware and embedded code, so you'll notice the UI is very...basic.
In order to use this there's a pre-requisite: The current implementation of the NRF51 firmware doesn't support bonding/pairing. Windows doesn't support establishing direct connections with non-bonded devices. So, I implemented bonding/pairing in the NRF51 firmware. You can find the code here (code is in the "nrf_pairing" branch -- you'll need to build & flash it yourself):
https://github.com/theseankelly/crazyfl ... rf_pairing
And here's the app code (again, you'll need to build it yourself and your phone/pc will need to be put into developer mode to deploy. I don't have plans to deal with figuring out how to deploy the app to the windows store). Grab VS 2016 Express (free) and build/deploy from there. (Pair with the crazyflie first -- it's discoverable by default when you turn it on).
https://github.com/theseankelly/crazyfl ... uap-client
Like I said, it's enough to get the job done for flying, but is missing some big things:
- no support for OTA firmware update
- no support for changing flight settings (fixed at 80% max thrust, 30% pitch/roll, and 200deg/s yaw).
- joysticks are not configurable (left stick is thrust and yaw, right stick is pitch and roll)
- no plumbing of telemetry, voltage or signal strength
- exception handling and error reporting is nonexistent
Enjoy!
Sean