2023-03-01 02:12:36 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
#include <SRV_Channel/SRV_Channel_config.h>
|
|
|
|
|
|
|
|
#ifndef HAL_WITH_ESC_TELEM
|
2024-02-29 20:06:20 -04:00
|
|
|
#define HAL_WITH_ESC_TELEM ((NUM_SERVO_CHANNELS > 0) && ((HAL_SUPPORT_RCOUT_SERIAL || HAL_MAX_CAN_PROTOCOL_DRIVERS)))
|
2023-03-01 02:12:36 -04:00
|
|
|
#endif
|
2024-07-27 16:44:13 -03:00
|
|
|
|
|
|
|
#ifndef AP_EXTENDED_ESC_TELEM_ENABLED
|
|
|
|
#define AP_EXTENDED_ESC_TELEM_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AP_EXTENDED_ESC_TELEM_ENABLED && !HAL_WITH_ESC_TELEM
|
|
|
|
#error "AP_EXTENDED_ESC_TELEM_ENABLED requires HAL_WITH_ESC_TELEM"
|
|
|
|
#endif
|