static void sonar_OnPolled(NxtPollable e) { //Console.WriteLine(((NxtUltrasonicSensor)e).DistanceCm); }
static void OnWithinThreshold(NxtPollable e) { Console.WriteLine("Obstacle in {0} cm", ((NxtUltrasonicSensor)e).DistanceCm); Reverse(); }
static void sound_OnPolled(NxtPollable e) { //Console.WriteLine(((NxtSoundSensor)e).Intensity); }