41 #include <px4_platform_common/defines.h> 56 : _subscriber_handler(subscriber_handler)
102 tune_control.
tune_id =
static_cast<int>(TuneID::ERROR_TUNE);
104 tune_control.
volume = tune_control_s::VOLUME_LEVEL_MAX;
RC_Loss_Alarm(const events::SubscriberHandler &subscriber_handler)
bool vehicle_status_updated() const
void stop_tune()
Publish tune control to interrupt any sound.
int orb_copy(const struct orb_metadata *meta, int handle, void *buffer)
Contains a list of uORB subscriptions and maintains their update state.
struct vehicle_status_s _vehicle_status
void play_tune()
Publish tune control to sound alarm.
High-resolution timer with callouts and timekeeping.
orb_advert_t orb_advertise_queue(const struct orb_metadata *meta, const void *data, unsigned int queue_size)
int get_vehicle_status_sub() const
#define ORB_ID(_name)
Generates a pointer to the uORB metadata structure for a given topic.
orb_advert_t _tune_control_pub
int orb_publish(const struct orb_metadata *meta, orb_advert_t handle, const void *data)
const events::SubscriberHandler & _subscriber_handler
bool check_for_updates()
check for topic updates
void process()
regularily called to handle state updates
__EXPORT hrt_abstime hrt_absolute_time(void)
Get absolute time in [us] (does not wrap).
Tone alarm in the event of RC loss.