Module: Crubyflie::CrazyradioConstants
- Included in:
- Crazyradio
- Defined in:
- lib/crubyflie/crazyradio/crazyradio.rb
Overview
This module defines some Crazyradio-related constants
Constant Summary collapse
- CRAZYRADIO_VENDOR_ID =
USB dongle vendor ID
0x1915
- CRAZYRADIO_PRODUCT_ID =
USB dongle product ID
0x7777
- SET_RADIO_CHANNEL =
Set radio channel instruction code
0x01
- SET_RADIO_ADDRESS =
Set address instruction code
0x02
- SET_DATA_RATE =
Set data rate instruction code. For values see below
0x03
- SET_RADIO_POWER =
Set radio power instruction code. For valid values see below
0x04
- SET_RADIO_ARD =
Set ARD (Auto Retry Delay) instruction code
0x05
- SET_RADIO_ARC =
Set ARC (Auto Retry Count) instruction code
0x06
- ACK_ENABLE =
Set ack instruction code
0x10
- SET_CONT_CARRIER =
Set control carrier instruction code
0x20
- SCANN_CHANNELS =
Scan N channels instruction code
0x21
- LAUNCH_BOOTLOADER =
Launch bootloader instruction code
0xFF
- DEFAULT_CHANNEL =
Default channel to talk to a Crazyflie
2
- DR_250KPS =
250 Kb/s datarate
0
- DR_1MPS =
1 Mb/s datarate
1
- DR_2MPS =
2 Mb/s datarate
2
- P_M18DBM =
18db power attenuation
0
- P_M12DBM =
12db power attenuation
1
- P_M6DBM =
6db power attenuation
2
- P_0DBM =
0db power attenuation
3