View Single Post
  #1   Spotlight this post!  
Unread 29-06-2007, 23:23
ManicMechanic ManicMechanic is offline
Registered User
AKA: Yolande
VRC #0438 (Metal Gear)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2003
Location: CA
Posts: 213
ManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond reputeManicMechanic has a reputation beyond repute
Too many R/C commands in a loop?

The attached program uses 8 commands in a loop, with the first 4 allowing the left joystick in R/C to shift a holonomic drive up/down left/right, the last 4 allowing channel 5 to spin the bot. When I insert the first 4 commands in the loop, the bot shifts properly. The last 4 commands in the same loop (without the first 4) spins it properly. But all 8 commands in the loop causes the bot to go berserk. Does 8 commands force it to sample too frequently? And how do I work around the problem? When I insert 2 loops sequentially, it never makes it to the second, because the first condition is always true.

A secondary problem: how do I copy and paste text in EasyC? I had to do a screen shot to post the program.
Attached Thumbnails
Click image for larger version

Name:	holo program.JPG
Views:	87
Size:	18.7 KB
ID:	5602  
__________________
He is no fool who gives what he cannot keep to gain that which he cannot lose. - Jim Elliot
Reply With Quote