Cyclone Cyclone: cyclone::AeroControl Class Reference

cyclone::AeroControl Class Reference

A force generator with a control aerodynamic surface. More...

#include <fgen.h>

Inheritance diagram for cyclone::AeroControl:

Inheritance graph
[legend]
Collaboration diagram for cyclone::AeroControl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AeroControl (const Matrix3 &base, const Matrix3 &min, const Matrix3 &max, const Vector3 &position, const Vector3 *windspeed)
 Creates a new aerodynamic control surface with the given properties.
void setControl (real value)
 Sets the control position of this control.
virtual void updateForce (RigidBody *body, real duration)
 Applies the force to the given rigid body.

Protected Attributes

Matrix3 maxTensor
 The aerodynamic tensor for the surface, when the control is at its maximum value.
Matrix3 minTensor
 The aerodynamic tensor for the surface, when the control is at its minimum value.
real controlSetting
 The current position of the control for this surface.

Detailed Description

A force generator with a control aerodynamic surface.

This requires three inertia tensors, for the two extremes and 'resting' position of the control surface. The latter tensor is the one inherited from the base class, the two extremes are defined in this class.


Constructor & Destructor Documentation

cyclone::AeroControl::AeroControl const Matrix3 base,
const Matrix3 min,
const Matrix3 max,
const Vector3 position,
const Vector3 windspeed
 

Creates a new aerodynamic control surface with the given properties.


Member Function Documentation

void cyclone::AeroControl::setControl real  value  ) 
 

Sets the control position of this control.

This * should range between -1 (in which case the minTensor value is * used), through 0 (where the base-class tensor value is used) * to +1 (where the maxTensor value is used). Values outside that range give undefined results.

virtual void cyclone::AeroControl::updateForce RigidBody body,
real  duration
[virtual]
 

Applies the force to the given rigid body.

Reimplemented from cyclone::Aero.


Member Data Documentation

real cyclone::AeroControl::controlSetting [protected]
 

The current position of the control for this surface.

This should range between -1 (in which case the minTensor value is used), through 0 (where the base-class tensor value is used) to +1 (where the maxTensor value is used).

Matrix3 cyclone::AeroControl::maxTensor [protected]
 

The aerodynamic tensor for the surface, when the control is at its maximum value.

Matrix3 cyclone::AeroControl::minTensor [protected]
 

The aerodynamic tensor for the surface, when the control is at its minimum value.


The documentation for this class was generated from the following file: