sitl.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #define HAL_BOARD_NAME "SITL"
  3. #define HAL_CPU_CLASS HAL_CPU_CLASS_1000
  4. #define HAL_MEM_CLASS HAL_MEM_CLASS_1000
  5. #define HAL_OS_POSIX_IO 1
  6. #define HAL_OS_SOCKETS 1
  7. #define HAL_STORAGE_SIZE 16384
  8. #define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
  9. #define HAL_BOARD_LOG_DIRECTORY "logs"
  10. #define HAL_BOARD_TERRAIN_DIRECTORY "terrain"
  11. #define HAL_PARAM_DEFAULTS_PATH nullptr
  12. #define HAL_INS_DEFAULT HAL_INS_HIL
  13. #define HAL_BARO_DEFAULT HAL_BARO_HIL
  14. #define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
  15. #define HAL_GPIO_A_LED_PIN 61
  16. #define HAL_GPIO_B_LED_PIN 48
  17. #define HAL_GPIO_C_LED_PIN 117
  18. #define HAL_GPIO_LED_ON 0
  19. #define HAL_GPIO_LED_OFF 1
  20. #define HAL_HAVE_BOARD_VOLTAGE 1
  21. #define HAL_HAVE_SERVO_VOLTAGE 1
  22. #define HAL_HAVE_SAFETY_SWITCH 0
  23. // allow for static semaphores
  24. #include <AP_HAL_SITL/Semaphores.h>
  25. #define HAL_Semaphore HALSITL::Semaphore
  26. #define HAL_Semaphore_Recursive HALSITL::Semaphore_Recursive
  27. #ifndef HAL_BOARD_STORAGE_DIRECTORY
  28. #define HAL_BOARD_STORAGE_DIRECTORY "."
  29. #endif