options.h 881 B

1234567891011121314151617181920212223242526
  1. /*
  2. control optional behaviour in the firmware at build time
  3. */
  4. #pragma once
  5. #include "board_config.h"
  6. // enable WiFi NAN support
  7. #define AP_WIFI_NAN_ENABLED 1
  8. // allow enabling legacy or long range only, or both
  9. #define AP_BLE_LEGACY_ENABLED 1 // bluetooth 4 legacy
  10. #define AP_BLE_LONGRANGE_ENABLED 1 // bluetooth 5 long range
  11. // start sending packets as soon we we power up,
  12. // not waiting for location data from flight controller
  13. #define AP_BROADCAST_ON_POWER_UP 1
  14. // do we support DroneCAN connnection to flight controller?
  15. #define AP_DRONECAN_ENABLED defined(PIN_CAN_TX) && defined(PIN_CAN_RX)
  16. // do we support MAVLink connnection to flight controller?
  17. #define AP_MAVLINK_ENABLED 1
  18. // define the output update rate
  19. #define OUTPUT_RATE_HZ 1 //this is the minimum update rate according to the docs. More transmissions will increase interferency to other radio modules.