protected override void Initialised(YololContext ctx)
        {
            base.Initialised(ctx);

            ctx.Get(":radar_beam_angle").Value = (Number)15;
            ctx.Get(":radar_beam_range").Value = (Number)5000;
        }
コード例 #2
0
 protected override float BeamRange(YololContext ctx)
 {
     return(YololValue.Number(ctx.Get(":radar_beam_range").Value, MinRange, MaxRange));
 }
コード例 #3
0
 protected override float BeamAngle(YololContext ctx)
 {
     return(YololValue.Number(ctx.Get(":radar_beam_angle").Value, MinAngle, MaxAngle));
 }
コード例 #4
0
 protected override float Bearing(YololContext ctx)
 {
     return(YololValue.Number(ctx.Get(":radar_bearing").Value, 0, 360));
 }
コード例 #5
0
 protected override float Elevation(YololContext ctx)
 {
     return(YololValue.Number(ctx.Get(":radar_elevation").Value, 0, 360));
 }
 protected override float Bearing(YololContext ctx)
 {
     return(270);
 }
 protected override float Elevation(YololContext ctx)
 {
     return(0);
 }