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;
|
||||
}
|
||||
|
||||
void PropEngine::setOmega (float omega)
|
||||
{
|
||||
_omega = omega;
|
||||
}
|
||||
|
||||
void PropEngine::getThrust(float* out)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
virtual void stabilize();
|
||||
|
||||
float getOmega();
|
||||
void setOmega (float omega);
|
||||
|
||||
private:
|
||||
float _moment;
|
||||
|
|
Loading…
Reference in a new issue