#include #include /*************************************************** / MINDS-i Application. mymindsi.com / /Simple Radio Drive Application / /This Simple Radio Drive Application code /is a basic example of how to incorporate /your Radio Transmitter and Receiver in /the Arduino code. In this code your rover /will be controlled manually by your radio /transmitter. / /***************************************************/ Servo drive, steer; void setup() { drive.attach(4); //set a pin for the ESC/steering servo to use steer.attach(5); drive.write(90); //set the output for the ESC/servo steer.write(90); delay(1000); //delay 1 second for arming } void loop() { drive.write( getRadio(2) ); //set the servo to the inbound radio value steer.write( getRadio(3) ); }