Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

USARBot.EncoderSensor

Extends
Sensor
Modifiers
config ( USARBot )

Core.Object
|   
+-- Engine.Actor
   |   
   +-- USARBot.Item
      |   
      +-- USARBot.Sensor
         |   
         +-- USARBot.EncoderSensor

Variables Summary
vectoraxis1
vectoraxis2
floatbaseAng
intcurAng
intcurBaseAng
intlastAng
intlastBaseAng
floatmyAng
intmyTick
ActorparBase
USARRemoteBotrBot
floatResolution
stringtickData
floattotalAng
intuuResolution
Inherited Variables from USARBot.Sensor
bUseGroup, bWithTimeStamp, HiddenSensor, Mean, Noise, OutputCurve, Sigma, utils
Inherited Variables from USARBot.Item
converter, ItemMount, ItemName, ItemType, myDirection, myPosition, Platform, Weight

Functions Summary
function ConvertParam (USARConverter converter)
functionString GetConfData ()
functionString GetData ()
functionint getTick ()
function Init (String SName, Actor parent, vector position, rotator direction, KVehicle platform, name mount)
functionfloat normalAngle (float ang)
functionstring Set (String opcode, String args)
Inherited Functions from USARBot.Sensor
GetConfData, GetConfHead, GetData, GetGeoData, GetGeoHead, GetHead, Init
Inherited Functions from USARBot.Item
ConvertParam, Init, isName, isType, Set, SetName


Variables Detail

axis1 Source code

var vector axis1;

axis2 Source code

var vector axis2;

baseAng Source code

var float baseAng;

curAng Source code

var int curAng;

curBaseAng Source code

var int curBaseAng;

lastAng Source code

var int lastAng;

lastBaseAng Source code

var int lastBaseAng;

myAng Source code

var float myAng;

myTick Source code

var int myTick;

parBase Source code

var Actor parBase;

rBot Source code

var USARRemoteBot rBot;
This class simulates the encoder sensor. The added config params are: Resolution: The resoulution of the encoder defined in UU. The returned value is: Tick: The data range is (-65535/uuResolution)~(65535/uuResolution). Positive value means clockwise direction. It's the controller's resposible to count how many circles the part has rotated.

Resolution Source code

var config float Resolution;

tickData Source code

var string tickData;

totalAng Source code

var float totalAng;

uuResolution Source code

var int uuResolution;


Functions Detail

ConvertParam Source code

function ConvertParam ( USARConverter converter )

GetConfData Source code

function String GetConfData ( )

GetData Source code

function String GetData ( )

getTick Source code

function int getTick ( )

Init Source code

function Init ( String SName, Actor parent, vector position, rotator direction, KVehicle platform, name mount )

normalAngle Source code

function float normalAngle ( float ang )

Set Source code

function string Set ( String opcode, String args )


Defaultproperties

defaultproperties
{

    bUseGroup=True
    ItemType="Encoder"
    HiddenSensor=false
    Resolution=0.01745 
    DrawScale=0.0047620004
    DrawScale3D=(X=0.001)
    StaticMesh=StaticMesh'USARSim_VehicleParts_Meshes.Sensors.Sensor'
    Noise=0.001
    Mass=0.001
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Mo 16.4.2007 11:20:19.187 - Created with UnCodeX