I was trying the example navigation on page 49 of the Guide, using the RotateSimple routine.
Problem: no matter what degrees of rotation i put in, Ringo goes forward in straight line.
Any suggestions?!?
Code Follows:
#include "RingoHardware.h"
void setup() {
HardwareBegin(); //initialize Ringo's brain to work with his circuitry
PlayStartChirp(); //Play startup chirp and blink eyes
delay(5000); // wait 1 sec before starting Navigation
NavigationBegin();
//SwitchMotorsToSerial(); //Call "SwitchMotorsToSerial()" before using Serial.print functions as motors & serial share a line
RestartTimer();
}
void loop() {
// add your own code here
//simple motor testing:
RotateSimple(180, 150, 150, 1500, 200);
delay(1000);
RotateSimple(-180,150,150,1500,200);
delay (1000);
}
Simple Rotation
Who is online
Users browsing this forum: No registered users and 6 guests