Programming Ringo - on or off?

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
PeteM
Posts: 13
Joined: Fri Aug 07, 2015 8:02 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

Programming Ringo - on or off?

Postby PeteM » Sun Aug 09, 2015 2:28 pm

It seems I must have Ringo turned on to program it. Is this correct? If this is the case we will have to be sure to program it so no motor action occurs before pushing the user button.

Otherwise, I am able to program it successfully with the examples and modify them so far. Haven't tried the gyro example yet. Time to go outside now and enjoy the weather.

Pete

DustinSoodak
Posts: 6
Joined: Sat Aug 08, 2015 11:16 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

Re: Programming Ringo - on or off?

Postby DustinSoodak » Sun Aug 09, 2015 9:14 pm

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.
If it is movement function, add delay(500) after this so it isn't moving (from when you pressed the button) when the navigation sensors (gryo & accel) are zeroed.
It can also be set to start using the IR remote.


[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 24 guests