[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Plum Geek Forum • Simple Rotation
Page 1 of 1

Simple Rotation

Posted: Tue Sep 08, 2015 4:39 am
by cbw060
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);

}

Re: Simple Rotation

Posted: Fri Sep 11, 2015 7:58 pm
by Kevin