Sending/Receiving Data by Crazyradio dongle
Posted: Tue Mar 24, 2015 2:59 pm
Hi everyone,
I'm trying to control crazyflies by computer,
But now there's some problom.
I have learned to connect crazyradio and send some radio setting.
http://wiki.bitcraze.se/doc:crazyradio:usb:index
For example
bmRequestType=0x40
bRequest=0x03(SET_DATA_RATE)
wValue=0(250Kbps)
wIndex=0
And than
bmRequestType=0x40
bRequest=0x21(START_SCAN_CHANNELS)
wValue=1(?)
wIndex=125(?)
Than motors will rotate for few second than stop.(Successful connected)
(I don't konw wValue&wIndex in here actually)
Here is my question,
I don't know where to get the data on crazyflies(ex: acc,mag,M1M2M3M4......)
And how to send the value or control the crazyflies(ex:roll,pitch,pid......)
I get some information here, but I still can't realize how to so.
http://wiki.bitcraze.se/projects:crazyf ... l#usb_port
Thanks for reading my question.
Please give me some suggession,thanks!!!
I'm trying to control crazyflies by computer,
But now there's some problom.
I have learned to connect crazyradio and send some radio setting.
http://wiki.bitcraze.se/doc:crazyradio:usb:index
For example
bmRequestType=0x40
bRequest=0x03(SET_DATA_RATE)
wValue=0(250Kbps)
wIndex=0
And than
bmRequestType=0x40
bRequest=0x21(START_SCAN_CHANNELS)
wValue=1(?)
wIndex=125(?)
Than motors will rotate for few second than stop.(Successful connected)
(I don't konw wValue&wIndex in here actually)
Here is my question,
I don't know where to get the data on crazyflies(ex: acc,mag,M1M2M3M4......)
And how to send the value or control the crazyflies(ex:roll,pitch,pid......)
I get some information here, but I still can't realize how to so.
http://wiki.bitcraze.se/projects:crazyf ... l#usb_port
Thanks for reading my question.
Please give me some suggession,thanks!!!