Browse Source

QGCCameraControl: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Don Gagne
parent
commit
930964671a
  1. 2
      src/Camera/QGCCameraControl.cc
  2. 10
      src/Camera/QGCCameraControl.h

2
src/Camera/QGCCameraControl.cc

@ -2156,7 +2156,7 @@ QGCVideoStreamInfo::QGCVideoStreamInfo(QObject* parent, const mavlink_video_stre @@ -2156,7 +2156,7 @@ QGCVideoStreamInfo::QGCVideoStreamInfo(QObject* parent, const mavlink_video_stre
//-----------------------------------------------------------------------------
qreal
QGCVideoStreamInfo::aspectRatio()
QGCVideoStreamInfo::aspectRatio() const
{
qreal ar = 1.0;
if(_streamInfo.resolution_h && _streamInfo.resolution_v) {

10
src/Camera/QGCCameraControl.h

@ -40,11 +40,11 @@ public: @@ -40,11 +40,11 @@ public:
QString uri () { return QString(_streamInfo.uri); }
QString name () { return QString(_streamInfo.name); }
qreal aspectRatio ();
qreal hfov () { return _streamInfo.hfov; }
int type () { return _streamInfo.type; }
int streamID () { return _streamInfo.stream_id; }
bool isThermal () { return _streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_THERMAL; }
qreal aspectRatio () const;
qreal hfov () const{ return _streamInfo.hfov; }
int type () const{ return _streamInfo.type; }
int streamID () const{ return _streamInfo.stream_id; }
bool isThermal () const{ return _streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_THERMAL; }
bool update (const mavlink_video_stream_status_t* vs);

Loading…
Cancel
Save