RGB Animator icon RGB Animator — Create custom animations for JD Humanoid's 18 RGB Eyes LEDs via I2C - per-LED color frames, transitions, pauses, scripting and real-time preview. Try it →

ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

Yes.

#2  

Like the ping wailt command... I just discovered the ADC_Wait command... much more efficient than using getadc in a repeatwhile or until loop....

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#4  

@Richard - Yep, there are many scripts where I didn't use the ping_wait or ADC_Wait commands because I tend to over complicate things sometimes. I've changed them now though, in fact Ping_Wait is used in my latest Ping Roam script for the intelligent turning (turns until it's clear, which is basically a Left() or Right() command followed by a Ping_Wait() command).

I did contemplate changing my battery monitor to use ADC_Wait to avoid the constant loops but since it is also used to report the current voltage that wouldn't have worked. I do, however have another script that runs along side the battery monitor which basically starts with ADC_Wait() so that it only runs when the battery level is below my pre-determined absolute minimum, then it shuts everything down that it can shut down to conserve energy until I can manually intervene. Eventually this will become the auto charging script when I finally get around to figuring out the "auto find docking station and charge".