Search found 6 matches

[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
by DustinSoodak
Tue Oct 13, 2015 6:09 pm
Forum: Ringo Basics
Topic: Predictable Movement??
Replies: 13
Views: 24400

Re: Predictable Movement??

Unlike the "turtle" game, we are working with real-world components and surfaces that are not necessarily perfectly smooth. RotateAccurate(90,3000) will try to get you to exactly 90 degrees (as measured by PresentHeading()) but if it overshoots more than 3 times it will be satisfied with 8...
by DustinSoodak
Tue Oct 13, 2015 5:44 pm
Forum: Ringo Basics
Topic: Predictable Movement??
Replies: 13
Views: 24400

Re: Predictable Movement??

RotateAccurate() uses units of absolute degrees (not relative to present heading). In your second example (turtle_04), try changing RotateAccurate(90, 3000); to RotateAccurate(PresentHeading()+90, 3000); In your first example, ZeroNavigation() is resetting PresentHeading() to 0 each time so you get ...
by DustinSoodak
Wed Sep 23, 2015 12:03 am
Forum: Ringo Advanced Coding
Topic: Ringo keeps a memory of his X and Y location
Replies: 1
Views: 7598

Re: Ringo keeps a memory of his X and Y location

NavigationXY() keeps track of x & y position. It has inputs GyroSensitivity and AccelSensitivity (100 and 800 are good values for most environments) which are used to determine if it is moving (global variable IsStationary). Kevin pointed out that this might be confusing so he is writing a funct...
by DustinSoodak
Mon Aug 17, 2015 11:00 pm
Forum: Ringo Code Share
Topic: Updated RingoHardware and some new examples
Replies: 0
Views: 12956

Updated RingoHardware and some new examples

RingoHardware updated from version 1.1 to 1.2 You can get it at https://github.com/dsoodak/Ringo Main changes are in "LookForEdge()", though there are also a few new examples for IR and one for gyroscope. The original edge detection algorithm was optimized for the hardware of the prototype...
by DustinSoodak
Sun Aug 09, 2015 9:14 pm
Forum: Ringo Basics
Topic: Programming Ringo - on or off?
Replies: 1
Views: 8368

Re: Programming Ringo - on or off?

It does have to be on to program(otherwise it is just charging). After HardwareBegin(); and PlayStartChirp();, its a good idea to put something like while(!ButtonPressed()); to prevent this issue. Maybe even follow it with while(ButtonPressed()); so it doesn't continue until you RELEASE the button. ...
by DustinSoodak
Sun Aug 09, 2015 12:33 am
Forum: Ringo Basics
Topic: Missing MiscHardware Library ?
Replies: 12
Views: 22431

Re: Missing MiscHardware Library ?

A separate copy of MiscHardware (renamed RingoHardware) will be included in each example sketch (several examples should be ready for release this evening).
[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