mirror of https://github.com/ArduPilot/ardupilot
20 lines
496 B
C++
20 lines
496 B
C++
#pragma once
|
|
|
|
#include "RGBLed.h"
|
|
#if HAL_ENABLE_DRONECAN_DRIVERS
|
|
|
|
#include <AP_DroneCAN/AP_DroneCAN.h>
|
|
|
|
class DroneCAN_RGB_LED: public RGBLed {
|
|
public:
|
|
DroneCAN_RGB_LED(uint8_t led_off, uint8_t led_full,
|
|
uint8_t led_medium, uint8_t led_dim);
|
|
DroneCAN_RGB_LED();
|
|
bool init() override;
|
|
void update() override;
|
|
protected:
|
|
virtual bool hw_set_rgb(uint8_t red, uint8_t green, uint8_t blue) override;
|
|
uavcan_equipment_indication_LightsCommand msg;
|
|
};
|
|
#endif
|