Add the ability to set the RPM from the outside.
This commit is contained in:
parent
5161029fc5
commit
202e79b4ad
2 changed files with 6 additions and 0 deletions
|
@ -62,6 +62,11 @@ float PropEngine::getOmega()
|
||||||
return _omega;
|
return _omega;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PropEngine::setOmega (float omega)
|
||||||
|
{
|
||||||
|
_omega = omega;
|
||||||
|
}
|
||||||
|
|
||||||
void PropEngine::getThrust(float* out)
|
void PropEngine::getThrust(float* out)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -36,6 +36,7 @@ public:
|
||||||
virtual void stabilize();
|
virtual void stabilize();
|
||||||
|
|
||||||
float getOmega();
|
float getOmega();
|
||||||
|
void setOmega (float omega);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float _moment;
|
float _moment;
|
||||||
|
|
Loading…
Add table
Reference in a new issue