APM:Libraries
|
#include <RGBLed.h>
Public Member Functions | |
RGBLed (uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim) | |
virtual bool | init (void) |
virtual bool | healthy () |
virtual void | set_rgb (uint8_t red, uint8_t green, uint8_t blue) |
virtual void | update () |
virtual void | handle_led_control (mavlink_message_t *msg) override |
![]() | |
virtual | ~NotifyDevice () |
virtual void | handle_play_tune (mavlink_message_t *msg) |
Protected Member Functions | |
virtual bool | hw_init (void)=0 |
virtual bool | hw_set_rgb (uint8_t red, uint8_t green, uint8_t blue)=0 |
virtual void | _set_rgb (uint8_t red, uint8_t green, uint8_t blue) |
virtual void | update_override () |
Protected Attributes | |
uint8_t | counter |
uint8_t | step |
bool | _healthy |
uint8_t | _red_des |
uint8_t | _green_des |
uint8_t | _blue_des |
uint8_t | _red_curr |
uint8_t | _green_curr |
uint8_t | _blue_curr |
uint8_t | _led_off |
uint8_t | _led_bright |
uint8_t | _led_medium |
uint8_t | _led_dim |
struct { | |
uint8_t r | |
uint8_t g | |
uint8_t b | |
uint8_t rate_hz | |
uint32_t start_ms | |
} | _led_override |
Private Member Functions | |
virtual void | update_colours () |
Additional Inherited Members | |
![]() | |
const AP_Notify * | pNotify |
RGBLed::RGBLed | ( | uint8_t | led_off, |
uint8_t | led_bright, | ||
uint8_t | led_medium, | ||
uint8_t | led_dim | ||
) |
Definition at line 26 of file RGBLed.cpp.
|
protectedvirtual |
Definition at line 51 of file RGBLed.cpp.
Referenced by healthy(), set_rgb(), and update_override().
|
overridevirtual |
Reimplemented from NotifyDevice.
Definition at line 356 of file RGBLed.cpp.
Referenced by healthy().
|
inlinevirtual |
|
protectedpure virtual |
Implemented in Led_Sysfs, DiscoLED, VRBoard_LED, DiscreteRGBLed, PixRacerLED, ToshibaLED_I2C, NavioLED_I2C, RCOutputRGBLed, and UAVCAN_RGB_LED.
Referenced by healthy(), and init().
|
protectedpure virtual |
Implemented in RCOutputRGBLedOff, Led_Sysfs, DiscoLED, VRBoard_LED, DiscreteRGBLed, PixRacerLED, ToshibaLED_I2C, NavioLED_I2C, RCOutputRGBLed, and UAVCAN_RGB_LED.
Referenced by _set_rgb(), and healthy().
|
virtual |
Implements NotifyDevice.
Definition at line 44 of file RGBLed.cpp.
Referenced by setup().
|
virtual |
Definition at line 66 of file RGBLed.cpp.
Referenced by blink(), full_spectrum(), healthy(), and update().
|
virtual |
Implements NotifyDevice.
Definition at line 339 of file RGBLed.cpp.
Referenced by healthy(), and loop().
|
privatevirtual |
Definition at line 81 of file RGBLed.cpp.
Referenced by update().
|
protectedvirtual |
Definition at line 391 of file RGBLed.cpp.
Referenced by healthy(), and update().
|
protected |
Definition at line 60 of file RGBLed.h.
Referenced by _set_rgb().
|
protected |
Definition at line 59 of file RGBLed.h.
Referenced by update(), and update_colours().
|
protected |
Definition at line 60 of file RGBLed.h.
Referenced by _set_rgb().
|
protected |
Definition at line 59 of file RGBLed.h.
Referenced by update(), and update_colours().
|
protected |
|
protected |
Definition at line 62 of file RGBLed.h.
Referenced by RCOutputRGBLed::get_duty_cycle_for_color(), RCOutputRGBLedInverted::get_duty_cycle_for_color(), and update_colours().
|
protected |
Definition at line 64 of file RGBLed.h.
Referenced by update_colours().
|
protected |
Definition at line 63 of file RGBLed.h.
Referenced by update_colours().
|
protected |
Definition at line 61 of file RGBLed.h.
Referenced by ToshibaLED_I2C::hw_init(), RCOutputRGBLedOff::hw_set_rgb(), and update_colours().
struct { ... } RGBLed::_led_override |
Referenced by handle_led_control(), and update_override().
|
protected |
Definition at line 60 of file RGBLed.h.
Referenced by _set_rgb().
|
protected |
Definition at line 59 of file RGBLed.h.
Referenced by update(), and update_colours().
uint8_t RGBLed::b |
Definition at line 67 of file RGBLed.h.
Referenced by PixRacerLED::hw_set_rgb().
|
protected |
Definition at line 56 of file RGBLed.h.
Referenced by update_colours().
uint8_t RGBLed::g |
Definition at line 67 of file RGBLed.h.
Referenced by PixRacerLED::hw_set_rgb().
uint8_t RGBLed::r |
Definition at line 67 of file RGBLed.h.
Referenced by PixRacerLED::hw_set_rgb().
|
protected |
Definition at line 57 of file RGBLed.h.
Referenced by update_colours().