VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Vehicle::Sys_status Class Reference

System status of the vehicle. More...

#include <vehicle.h>

Public Types

enum  Control_mode {
  Control_mode::MANUAL, Control_mode::AUTO, Control_mode::GUIDED, Control_mode::JOYSTICK,
  Control_mode::UNKNOWN
}
 Control mode of the vehicle. More...
 
enum  State { State::DISARMED, State::ARMED, State::UNKNOWN }
 State of the vehicle. More...
 

Public Member Functions

 Sys_status (bool uplink_connected, bool downlink_connected, Control_mode control_mode, State state, std::chrono::seconds uptime)
 Construct system status. More...
 
bool operator== (const Sys_status &) const
 Equality operator. More...
 

Public Attributes

bool uplink_connected
 State of the uplink connection to the vehicle. More...
 
bool downlink_connected
 State of the downlink connection from the vehicle. More...
 
Control_mode control_mode
 Current control mode. More...
 
State state
 Current state of the vehicle. More...
 
std::chrono::seconds uptime
 Vehicle uptime. More...
 

Detailed Description

System status of the vehicle.

Member Enumeration Documentation

Control mode of the vehicle.

Enumerator
MANUAL 

Direct manual control via RC transmitter.

AUTO 

Automatic control.

GUIDED 

Manual control via single WP.

JOYSTICK 

Direct manual control via joystick.

UNKNOWN 

Unknown method of control.

State of the vehicle.

Enumerator
DISARMED 

Vehicle is disarmed.

ARMED 

Vehicle is armed.

UNKNOWN 

Vehicle state is unknown.

Constructor & Destructor Documentation

ugcs::vsm::Vehicle::Sys_status::Sys_status ( bool  uplink_connected,
bool  downlink_connected,
Control_mode  control_mode,
State  state,
std::chrono::seconds  uptime 
)

Construct system status.

Member Function Documentation

bool ugcs::vsm::Vehicle::Sys_status::operator== ( const Sys_status ) const

Equality operator.

Member Data Documentation

Control_mode ugcs::vsm::Vehicle::Sys_status::control_mode

Current control mode.

bool ugcs::vsm::Vehicle::Sys_status::downlink_connected

State of the downlink connection from the vehicle.

State ugcs::vsm::Vehicle::Sys_status::state

Current state of the vehicle.

bool ugcs::vsm::Vehicle::Sys_status::uplink_connected

State of the uplink connection to the vehicle.

std::chrono::seconds ugcs::vsm::Vehicle::Sys_status::uptime

Vehicle uptime.


The documentation for this class was generated from the following file: