Then we configured a SoundVehicle.java class which reads values from the sound sensor and maps the value to both motors on the robot. The code snippet[Fig. 2] below shows how the program reads the sound value and maps it to the motors:
Then we configured a SoundVehicle.java class which reads values from the sound sensor and maps the value to both motors on the robot. The code snippet[Fig. 2] below shows how the program reads the sound value and maps it to the motors: