Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

fix explicit copy constructor #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/ArduPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ class Control
this->pid.Init(0.1, 0, 0, 0, 0, 1.0, -1.0);
}

/// \brief copy constructor
public: Control& operator=(const Control& source) = default;
/// \brief explicit copy constructor
public: Control(const Control& source) :
rotorVelocitySlowdownSim(source.rotorVelocitySlowdownSim),
frequencyCutoff(source.frequencyCutoff),
samplingRate(source.samplingRate) {}

/// \brief control id / channel
public: int channel = 0;
Expand Down