|
APM:Libraries
|
#include <DiscoLED.h>
Public Member Functions | |
| DiscoLED () | |
Public Member Functions inherited from RGBLed | |
| 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 |
Public Member Functions inherited from NotifyDevice | |
| virtual | ~NotifyDevice () |
| virtual void | handle_play_tune (mavlink_message_t *msg) |
Protected Member Functions | |
| bool | hw_init (void) override |
| bool | hw_set_rgb (uint8_t r, uint8_t g, uint8_t b) override |
Protected Member Functions inherited from RGBLed | |
| virtual void | _set_rgb (uint8_t red, uint8_t green, uint8_t blue) |
| virtual void | update_override () |
Private Types | |
| enum | led_backend { LED_SYSFS, PWM_SYSFS } |
Private Attributes | |
| Linux::PWM_Sysfs_Bebop | red_pwm |
| Linux::PWM_Sysfs_Bebop | green_pwm |
| Linux::PWM_Sysfs_Bebop | blue_pwm |
| Linux::Led_Sysfs | red_led |
| Linux::Led_Sysfs | green_led |
| Linux::Led_Sysfs | blue_led |
| uint32_t | red_pwm_period |
| uint32_t | green_pwm_period |
| uint32_t | blue_pwm_period |
| enum led_backend | backend |
Additional Inherited Members | |
Public Attributes inherited from NotifyDevice | |
| const AP_Notify * | pNotify |
Protected Attributes inherited from RGBLed | |
| 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 |
Definition at line 27 of file DiscoLED.h.
|
private |
| Enumerator | |
|---|---|
| LED_SYSFS | |
| PWM_SYSFS | |
Definition at line 49 of file DiscoLED.h.
| DiscoLED::DiscoLED | ( | ) |
Definition at line 38 of file DiscoLED.cpp.
|
overrideprotectedvirtual |
Implements RGBLed.
Definition at line 50 of file DiscoLED.cpp.
|
overrideprotectedvirtual |
Implements RGBLed.
Definition at line 76 of file DiscoLED.cpp.
|
private |
Definition at line 54 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 43 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 39 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 47 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 42 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 38 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 46 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 41 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 37 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
|
private |
Definition at line 45 of file DiscoLED.h.
Referenced by hw_init(), and hw_set_rgb().
1.8.13