Flyby SDK v0.3.0
Loading...
Searching...
No Matches
flyby::Drone Class Referenceabstract

The main interface between the payload, drone, and drone controller. More...

#include <drone.h>

Public Member Functions

 Drone ()=default
 The default constructor.
 
virtual void start_server ()=0
 Starts the server for the registered payload.
 
virtual void register_payload (std::shared_ptr< PayloadInterface > payload)=0
 Registers the payload with the drone.
 

Detailed Description

The main interface between the payload, drone, and drone controller.

This class is hides the details for payload registration and controller communication.

Member Function Documentation

◆ register_payload()

virtual void flyby::Drone::register_payload ( std::shared_ptr< PayloadInterface > payload)
pure virtual

Registers the payload with the drone.

This function emits a new payload registered status to the controller.

Parameters
payload- A shared_ptr that holds the payload object.

◆ start_server()

virtual void flyby::Drone::start_server ( )
pure virtual

Starts the server for the registered payload.

This function emits a new payload live status to the controller.


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