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; }
protected override float BeamRange(YololContext ctx) { return(YololValue.Number(ctx.Get(":radar_beam_range").Value, MinRange, MaxRange)); }
protected override float BeamAngle(YololContext ctx) { return(YololValue.Number(ctx.Get(":radar_beam_angle").Value, MinAngle, MaxAngle)); }
protected override float Bearing(YololContext ctx) { return(YololValue.Number(ctx.Get(":radar_bearing").Value, 0, 360)); }
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); }