hi technic magnetic sensor help
ok so we have to biuld this magnetic bomb detecting and dismantling robot. we are using the hi-tecnic magnetic sensor to find the bombs. however the coding the senosr is a bit of a problem if you have no idea how to.......
so i have verified the the sensor works and from the HT-mag test code and for raiding the internet i have come up with this basic code to;
1.play a tone when over a set point of input
2.play a tone ever 1 second under a set point of input
#pragma config(Sensor, S1, up, sensorTouch)
#pragma config(Sensor, S4, HTMAG, sensorNone)
#pragma config(Motor, motorA, motorA, tmotorNormal, PIDControl, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main ()
PlayTone( 880, 7); wait1Msec( 75);
PlayTone( 880, 7);
the robot has been biult a while ago and this is the only thing that is messing us up. please help our class soon.