You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.8 KiB
52 lines
1.8 KiB
#pragma once |
|
|
|
/// @file |
|
/// @brief Core Plugin Interface for QGroundControl |
|
/// @author Gus Grubba <mavlink@grubba.com> |
|
|
|
class IQGCOptions |
|
{ |
|
public: |
|
IQGCOptions() {} |
|
virtual ~IQGCOptions() {} |
|
//! Should QGC colapse its settings menu into one single menu (Settings and Vehicle Setup)? |
|
/*! |
|
@return true if QGC should consolidate both menus into one. |
|
*/ |
|
virtual bool colapseSettings () { return false; } |
|
//! Should QGC use Maps as its default main view? |
|
/*! |
|
@return true if QGC should use Maps by default or false to show Video by default. |
|
*/ |
|
virtual bool mainViewIsMap () { return true; } |
|
//! Should QGC use virtual Joysticks? |
|
/*! |
|
@return false to disable Virtual Joysticks. |
|
*/ |
|
virtual bool enableVirtualJoystick () { return true; } |
|
//! Should QGC allow setting auto-connect options? |
|
/*! |
|
@return false to disable auto-connect options. |
|
*/ |
|
virtual bool enableAutoConnectOptions () { return true; } |
|
//! Should QGC allow setting video source options? |
|
/*! |
|
@return false to disable video source options. |
|
*/ |
|
virtual bool enableVideoSourceOptions () { return true; } |
|
//! Does your plugin defines its on video source? |
|
/*! |
|
@return true to define your own video source. |
|
*/ |
|
virtual bool definesVideo () { return false; } |
|
//! UDP port to use for (RTP) video source. |
|
/*! |
|
@return UDP Port to use. Return 0 to disable UDP RTP. |
|
*/ |
|
virtual uint16_t videoUDPPort () { return 0; } |
|
//! RTSP URL to use for video source. |
|
/*! |
|
@return RTSP url to use. Return "" to disable RTSP. |
|
*/ |
|
virtual QString videoRSTPUrl () { return QString(); } |
|
};
|
|
|