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

USARBot.ERSirEdge


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
/* Far IR Sensor for AIBO robots
 * by Marco Zaratti - marco.zaratti@gmail.com
*/

class ERSirEdge extends IR2Sensor config (USARBot);

function String GetData()
{
    local float range;
    local string outstring;

    range = GetRange() + 0.0179; //Distance Compensation
    curRot=Rotation;
    outstring="{Name "$ItemName$" Range "$converter.FloatString(range)$"}";
    return outstring;
}

defaultproperties
{
    HiddenSensor=true
    MaxRange=1.5 //1.5m
    MinRange=0
    OutputCurve=(Points=((InVal=0,OutVal=0.0021),(InVal=0.0021,OutVal=0.0021),(InVal=1.5,OutVal=1.5)))
    OutputNoise=(Points=((InVal=0,OutVal=0),(InVal=1.5,OutVal=0.1)))
}


Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sa 16.9.2006 21:12:24.000 - Creation time: Mo 16.4.2007 11:20:47.000 - Created with UnCodeX