control Namespace Reference

control module (layer over lower-level input module, contains current Craft). More...


Classes

class  Command
 Defines a command to control an Aircraft. More...
class  CommandNop
 NOP command. More...
class  CommandPosition
 Set position command. More...
class  CommandQuaternion
 Set graphical rotation (quaternion) command. More...
class  CommandPhysicalRotate
 Rotation according to physics model (for physical replay). Correlates to Aircraft::PhysicalRotate(). More...
class  CommandSpeed
 Set speed. More...
class  CommandThrottle
 Set throttle command. More...
class  CommandLandingGear
 Set landing gear command. More...
class  CommandBrakes
 Set brakes command. More...
class  ExceptionCommand
 Exception in Command. More...
class  Conf
 control module configuration. More...
class  Control
 Control is a Singleton that supports higher-level input handlers. More...
struct  CommandEvent
 Pairs a Aircraft with its Command. More...
class  Events
 Events for controlling an Aircraft. More...
class  Joystick
 Joystick control of a Craft, joystick calibration. More...
class  Replay
 Replay animation of a Aircraft. More...
class  ReplayPath
 Replay data (animation path). More...
class  ReplayPlayer
 Replay animation of an Aircraft (play mode implementation of Replay class). More...
class  ReplayRecorder
 Replay animation of an Aircraft (record-mode implementation of Replay class). More...

Namespaces

namespace  defs
namespace  global

Typedefs

typedef base::InitArgs InitArgs

Enumerations

enum  { AXIS_PITCH, AXIS_YAW, AXIS_ROLL }
enum  { TYPESIG_COMMAND = (uint('c')<<24) | (uint('o')<<16) | (uint('m')<<8) | uint('d'), TYPESIG_REPLAY = (uint('r')<<24) | (uint('p')<<16) | (uint('l')<<8) | uint('a'), TYPESIG_REPLAY_STEP = (uint('r')<<24) | (uint('s')<<16) | (uint('t')<<8) | uint('p') }
 Type signatures. More...

Functions

ostream & operator<< (ostream &strm, const Command &command)
ostream & operator<< (ostream &strm, const Conf &conf)
INLINE ConfGetConf (void)
void Init (const InitArgs &initArgs)
void Start (void)
ostream & operator<< (ostream &strm, const ReplayPath::Step &step)
istream & operator>> (istream &strm, ReplayPath::Step &step)

Variables

INTERN const string COMMAND_NAME_POSITION = "pos"
INTERN const string COMMAND_NAME_QUATERNION = "quat"
INTERN const string COMMAND_NAME_PHYSICAL_ROTATE = "phyRot"
INTERN const string COMMAND_NAME_THROTTLE = "throt"
INTERN const string COMMAND_NAME_SPEED = "kph"
INTERN const string COMMAND_NAME_LANDING_GEAR = "gear"
INTERN const string COMMAND_NAME_BRAKES = "brake"


Detailed Description

control module (layer over lower-level input module, contains current Craft).

Typedef Documentation


Enumeration Type Documentation

anonymous enum

Enumerator:
AXIS_PITCH 
AXIS_YAW 
AXIS_ROLL 

anonymous enum

Type signatures.

Enumerator:
TYPESIG_COMMAND 
TYPESIG_REPLAY 
TYPESIG_REPLAY_STEP 


Function Documentation

INLINE Conf& control::GetConf ( void   ) 

void control::Init ( const InitArgs initArgs  ) 

Initialize module.

ostream & control::operator<< ( ostream &  strm,
const ReplayPath::Step &  step 
)

Write replay Step to stream.

ostream & control::operator<< ( ostream &  strm,
const Conf conf 
)

Print configuration.

ostream & control::operator<< ( ostream &  strm,
const Command &  command 
)

Write Command (or derivative) to stream. Uses the virtual Command::Write(stream).

Asymmetrically, operator<<() (write) is defined, but operator>>() (read) is N/A, since reading a derivative from stream into base is illogical. Rather, use the factory method Command::Read(istream&).

istream & control::operator>> ( istream &  strm,
ReplayPath::Step &  step 
)

Read replay Replay::Step from stream.

void control::Start ( void   ) 

Start module.


Variable Documentation

INTERN const string control::COMMAND_NAME_BRAKES = "brake"

INTERN const string control::COMMAND_NAME_LANDING_GEAR = "gear"

INTERN const string control::COMMAND_NAME_PHYSICAL_ROTATE = "phyRot"

INTERN const string control::COMMAND_NAME_POSITION = "pos"

INTERN const string control::COMMAND_NAME_QUATERNION = "quat"

INTERN const string control::COMMAND_NAME_SPEED = "kph"

INTERN const string control::COMMAND_NAME_THROTTLE = "throt"

Palomino Flight Simulator documents generated by doxygen 1.5.6 on Mon Dec 29 17:27:00 2008