mavsdk::Mavsdk::Configuration Class Reference

#include: mavsdk.h


Possible configurations.

Public Member Functions

Type Name Description
  Configuration (uint8_t system_id, uint8_t component_id, bool always_send_heartbeats) Create new Configuration via manually configured system and component ID.
  Configuration (ComponentType component_type) Create new Configuration using a component type. In this mode, the system and component ID will be automatically chosen.
  Configuration ()=delete
  ~Configuration ()=default
uint8_t get_system_id () const Get the system id of this configuration.
void set_system_id (uint8_t system_id) Set the system id of this configuration.
uint8_t get_component_id () const Get the component id of this configuration.
void set_component_id (uint8_t component_id) Set the component id of this configuration.
bool get_always_send_heartbeats () const Get whether to send heartbeats by default.
void set_always_send_heartbeats (bool always_send_heartbeats) Set whether to send heartbeats by default.
ComponentType get_component_type () const Component type of this configuration, used for automatic ID set.
void set_component_type (ComponentType component_type) Set the component type of this configuration.

Constructor & Destructor Documentation

Configuration()

mavsdk::Mavsdk::Configuration::Configuration(uint8_t system_id, uint8_t component_id, bool always_send_heartbeats)

Create new Configuration via manually configured system and component ID.

Parameters

  • uint8_t system_id - the system id to store in this configuration
  • uint8_t component_id - the component id to store in this configuration
  • bool always_send_heartbeats - send heartbeats by default even without a system connected

Configuration()

mavsdk::Mavsdk::Configuration::Configuration(ComponentType component_type)

Create new Configuration using a component type. In this mode, the system and component ID will be automatically chosen.

Parameters

  • ComponentType component_type - the component type, used for automatically choosing ids.

Configuration()

mavsdk::Mavsdk::Configuration::Configuration()=delete

~Configuration()

mavsdk::Mavsdk::Configuration::~Configuration()=default

Member Function Documentation

get_system_id()

uint8_t mavsdk::Mavsdk::Configuration::get_system_id() const

Get the system id of this configuration.

Returns

 uint8_t - uint8_t the system id stored in this configuration, from 1-255

set_system_id()

void mavsdk::Mavsdk::Configuration::set_system_id(uint8_t system_id)

Set the system id of this configuration.

Parameters

  • uint8_t system_id -

get_component_id()

uint8_t mavsdk::Mavsdk::Configuration::get_component_id() const

Get the component id of this configuration.

Returns

 uint8_t - uint8_t the component id stored in this configuration,from 1-255

set_component_id()

void mavsdk::Mavsdk::Configuration::set_component_id(uint8_t component_id)

Set the component id of this configuration.

Parameters

  • uint8_t component_id -

get_always_send_heartbeats()

bool mavsdk::Mavsdk::Configuration::get_always_send_heartbeats() const

Get whether to send heartbeats by default.

Returns

 bool - whether to always send heartbeats

set_always_send_heartbeats()

void mavsdk::Mavsdk::Configuration::set_always_send_heartbeats(bool always_send_heartbeats)

Set whether to send heartbeats by default.

Parameters

  • bool always_send_heartbeats -

get_component_type()

ComponentType mavsdk::Mavsdk::Configuration::get_component_type() const

Component type of this configuration, used for automatic ID set.

Returns

ComponentType -

set_component_type()

void mavsdk::Mavsdk::Configuration::set_component_type(ComponentType component_type)

Set the component type of this configuration.

Parameters

© MAVSDK Development Team 2017-2023. License: CC BY 4.0            Updated: 2023-12-27 03:10:20

results matching ""

    No results matching ""