#include <UavControl.h>
Public Member Functions | |
UavControlPar (UavTypes uavType=UAV_TYPES_SWARMSIM, Decimal propGain=1.0, Decimal derivGain=2.0, Decimal mass=1.5, Decimal gravity=9.81, Decimal maxRollSin_=sin(20.0 *M_PI/180.0), Decimal maxPitchSin_=sin(20.0 *M_PI/180.0), Decimal minThrust=5.0) | |
Default constructor. | |
UavControlPar (const UavControlPar &p) | |
Copy constructor. | |
UavControlPar & | operator= (const UavControlPar &rhs) |
Assignment operator. | |
UavTypes | uavType () |
Gets the uav type. | |
Decimal | propGain () |
Gets the proportional gain. | |
Decimal | derivGain () |
Gets the derivative gain. | |
Decimal | mass () |
Gets the mass. | |
Decimal | gravity () |
Gets the gravity. | |
Decimal | maxRollSin () |
Gets the saturation value of roll. | |
Decimal | maxPitchSin () |
Gets the saturation value of Pitch. | |
Decimal | minThrust () |
Gets the saturation value of the Thrust which should be between 0 and m*g*.9. | |
string | getObjectName () const |
Gets the name. |
UavControlPar::UavControlPar | ( | UavTypes | uavType = UAV_TYPES_SWARMSIM , |
|
Decimal | propGain = 1.0 , |
|||
Decimal | derivGain = 2.0 , |
|||
Decimal | mass = 1.5 , |
|||
Decimal | gravity = 9.81 , |
|||
Decimal | maxRollSin_ = sin(20.0*M_PI/180.0) , |
|||
Decimal | maxPitchSin_ = sin(20.0*M_PI/180.0) , |
|||
Decimal | minThrust = 5.0 | |||
) |
Default constructor.
[in] | uavType | Type of uav. |
[in] | propGain | Proportional gain of the controller. |
[in] | derivGain | Derivative gain of the controller. |
[in] | mass | Mass of the uav. |
[in] | gravity | Gravity of the environment. |
UavControlPar::UavControlPar | ( | const UavControlPar & | p | ) |
Copy constructor.
copy constructor */
UavControlPar & UavControlPar::operator= | ( | const UavControlPar & | rhs | ) |
Assignment operator.
assigment operator = */
UavTypes UavControlPar::uavType | ( | ) |
Gets the uav type.
Decimal UavControlPar::propGain | ( | ) |
Gets the proportional gain.
Decimal UavControlPar::derivGain | ( | ) |
Gets the derivative gain.
Decimal UavControlPar::mass | ( | ) |
Gets the mass.
Decimal UavControlPar::gravity | ( | ) |
Gets the gravity.
Decimal UavControlPar::maxRollSin | ( | ) |
Gets the saturation value of roll.
Decimal UavControlPar::maxPitchSin | ( | ) |
Gets the saturation value of Pitch.
Decimal UavControlPar::minThrust | ( | ) |
Gets the saturation value of the Thrust which should be between 0 and m*g*.9.
string UavControlPar::getObjectName | ( | ) | const [inline, virtual] |