37 #ifndef MAVROSFLIGHT_PARAM_MANAGER_H 38 #define MAVROSFLIGHT_PARAM_MANAGER_H 56 template <
typename DerivedLogger>
117 #endif // MAVROSFLIGHT_PARAM_MANAGER_H
Describes an interface classes can implement to receive and handle mavlink messages.
bool first_param_received_
bool set_param_value(std::string name, double value)
bool get_param_value(std::string name, double *value)
void unregister_param_listener(ParamListenerInterface *listener)
std::vector< ParamListenerInterface * > listeners_
ParamManager(MavlinkComm *const comm, LoggerInterface< DerivedLogger > &logger, TimerProviderInterface &timer_provider)
bool load_from_file(std::string filename)
void handle_command_ack_msg(const mavlink_message_t &msg)
bool save_to_file(std::string filename)
LoggerInterface< DerivedLogger > & logger_
void request_param_list()
std::deque< mavlink_message_t > param_set_queue_
void param_set_timer_callback()
int get_params_received()
Describes an interface classes can implement to receive and handle mavlink messages.
bool is_param_id(std::string name)
void request_param(int index)
virtual void handle_mavlink_message(const mavlink_message_t &msg)
The handler function for mavlink messages to be implemented by derived classes.
void handle_param_value_msg(const mavlink_message_t &msg)
Provide an interface for creating timers.
bool param_set_in_progress_
void register_param_listener(ParamListenerInterface *listener)
std::map< std::string, Param > params_
bool write_request_in_progress_
TimerProviderInterface & timer_provider_
std::shared_ptr< TimerInterface > param_set_timer_