... | ... | @@ -44,6 +44,12 @@ Next, we modified our program to receive raw values directly from the sensor por |
|
|
|
|
|
[Video]
|
|
|
|
|
|
We now want to map our raw value to the range -100 to 100, in order for the robot motor power range to go from full power backwards to full power forwards, rather than from full stop to full power forwards. We do this by simply multiplying the percentage of measured raw value (inverted) with our full range value, in this case 200, and then adding this number to our minimum range value, in this case -100. We implemented this in the program **SoundReactor.java**, and the result can be seen in [INSERT NEXT VIDEO].
|
|
|
|
|
|
[Insert videooo (killed the radio star)]
|
|
|
|
|
|
|
|
|
|
|
|
### Vehicle 2
|
|
|
|
|
|
|
... | ... | |