32 #define LED_FULL_BRIGHT 255 33 #define LED_MEDIUM ((LED_FULL_BRIGHT / 5) * 4) 34 #define LED_DIM ((LED_FULL_BRIGHT / 5) * 2) 43 uint8_t led_full, uint8_t led_medium,
45 :
RGBLed(led_off, led_full, led_medium, led_dim)
46 , _led_index(led_index)
59 if (AP_BoardConfig_CAN::get_can_num_ifaces() != 0) {
60 for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_DRIVERS; i++) {
61 if (hal.
can_mgr[i] !=
nullptr) {
63 if (uavcan !=
nullptr) {
64 success |= uavcan->
led_write(_led_index, red, green, blue);
AP_HAL::CANManager ** can_mgr
bool led_write(uint8_t led_index, uint8_t red, uint8_t green, uint8_t blue)
virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override
UAVCAN_RGB_LED(uint8_t led_index, uint8_t led_off, uint8_t led_full, uint8_t led_medium, uint8_t led_dim)