Go to Post Pursue your passion whatever that may be and do not fault another for pursuing theirs. - Mr. Van [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 11-10-2006, 11:31
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 685
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
EasyC-FRC - Arcade driving help

Our team is using EasyC-FRC (currently ver 2.7.0.2) this year. That's okay. Hey -- it's easy. But I need to get some starting point, and I always get hung up on something simple at the beginning. And if I don't know, how are my 20 programming kids going to know?

We have a 4-motor test robot, and we're going to use arcade (single joystick) driving. All of the examples in the Help file show the Tank mode, but no details on Arcade.

I've got the infinite While(1) loop okay; the joystick input okay using JoyX = AnalogOIInput(~~~) and JoyY = AnalogOIInput(~~~); and finally the OItoPWM(~~~) to send the info to the 4 motors. We do some magic calcs [1] with JoyX and JoyY to optimize our motors, etc, then send them to OItoPWM() -- how? Do we mix the X and Y somehow? How much goes to the left side motors and how much to the right side?

Or do we use the "Arcade - 4 motor" function block in the While loop instead, and be done with it?

Thanks for your help.

Roger.


[1] Magic calcs are currently to reduce the speed of the robot -- we have a small room to drive it.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EasyC-Vex Rx/motor frustrations- please help! Steve0100 Programming 10 08-07-2006 02:18
help on easyC Loki1989 Programming 5 19-03-2006 08:42
Update for EasyC for FRC Available Kingofl337 Programming 0 07-03-2006 14:42
HELP!!!! EasyC Compiling Issues Wbrown0389 Programming 8 29-01-2006 09:18
Kickoff easyC workshop integrated into EasyC help file Dan Larochelle Programming 0 11-01-2006 06:12


All times are GMT -5. The time now is 03:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi