52 : _subscriber_handler(subscriber_handler)
67 bool got_updates =
false;
bool vehicle_status_updated() const
int get_cpuload_sub() const
struct vehicle_status_s _vehicle_status
int orb_copy(const struct orb_metadata *meta, int handle, void *buffer)
struct cpuload_s _cpu_load
void publish()
publish LED control
static struct vehicle_status_s status
Contains a list of uORB subscriptions and maintains their update state.
bool cpuload_updated() const
bool publish(const T &data)
Publish the struct.
struct battery_status_s _battery_status
int get_vehicle_status_sub() const
Status Display decouples LED and tunes from commander.
StatusDisplay(const events::SubscriberHandler &subscriber_handler)
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
void set_leds()
handle LED logic changes & call publish()
uORB::PublicationQueued< led_control_s > _led_control_pub
Led device API to control the external LED(s) via uORB interface.
int get_vehicle_status_flags_sub() const
int get_battery_status_sub() const
bool battery_status_updated() const
static struct cpuload_s cpuload
bool vehicle_status_flags_updated() const
bool check_for_updates()
check for topic updates
const events::SubscriberHandler & _subscriber_handler
struct vehicle_status_flags_s _vehicle_status_flags
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).
void process()
regularily called to handle state updates
struct led_control_s _led_control