Simple Rotation

Ringo setup, hardware, basic programming. User to user support.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
cbw060
Posts: 23
Joined: Wed Aug 26, 2015 6:21 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Simple Rotation

Postby cbw060 » Tue Sep 08, 2015 4:39 am

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);

}

Kevin
Posts: 180
Joined: Tue Jul 28, 2015 12:56 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Simple Rotation

Postby Kevin » Fri Sep 11, 2015 7:58 pm



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 29 guests