Go to Post I would not want the task of devising a system that 50,000 very smart people try to outwit. - texarkana [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-03-2006, 07:46
Loki1989's Avatar
Loki1989 Loki1989 is offline
Programming Mentor
AKA: Mike Parker
FRC #1544 (One Byte Short)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Anchorage, Alaska
Posts: 71
Loki1989 will become famous soon enough
Send a message via MSN to Loki1989 Send a message via Yahoo to Loki1989
help on easyC

does easy c automatically vary the speed for the amount that you move the controller.
please answer this if you can.
__________________
Looking for Team in the NoVA area.

2005 - 2008 Team Member
2006 - 2008 Team Co-Captain
2008 - 2013 Team Mentor
Team 1544
One Byte Short
  #2   Spotlight this post!  
Unread 18-03-2006, 11:01
Dillon Compton Dillon Compton is offline
Jack-Of-All-Trades
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Malvern, PA
Posts: 186
Dillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud of
Send a message via AIM to Dillon Compton
Re: help on easyC

Loki1989, I dont entirely understand the question; could you elaborate a little bit?

Are you wondering about joystick input to the speed controllers?
I cant quite tell from the question. I'll be happy to help you out if you explain a bit more!
__________________
www.metalmoose.com
  #3   Spotlight this post!  
Unread 18-03-2006, 21:53
Loki1989's Avatar
Loki1989 Loki1989 is offline
Programming Mentor
AKA: Mike Parker
FRC #1544 (One Byte Short)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Anchorage, Alaska
Posts: 71
Loki1989 will become famous soon enough
Send a message via MSN to Loki1989 Send a message via Yahoo to Loki1989
Re: help on easyC

because of our C++ we have a different speed for our robot depending on our controller values

im wondering if easyC will do this.
__________________
Looking for Team in the NoVA area.

2005 - 2008 Team Member
2006 - 2008 Team Co-Captain
2008 - 2013 Team Mentor
Team 1544
One Byte Short
  #4   Spotlight this post!  
Unread 18-03-2006, 22:57
Dillon Compton Dillon Compton is offline
Jack-Of-All-Trades
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Malvern, PA
Posts: 186
Dillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud of
Send a message via AIM to Dillon Compton
Re: help on easyC

If I understand the question correctly, you are asking if easyC automatically relays the joystick values to the speed controllers to the motors; i.e. does easyC automaticall map joystick output to pwms. The answer to that is no; it is, however, very simple. You create an infinite while loop in the operator control section [while(true)], and then within that loop you put the code that maps your style of drive to the motors. easyC has "drag and drop" functions that allow you to drag, for instance "4 wheel tank drive" into the code window, and then use a GUI to assign axes and pwm outputs- very user friendly, very easy.

I'll be happy to help you out with any other questions you've got, and I hope I understood the current question correctly; just a tip, but the more detail you provide, and the more precise the language you use, the easier and more accurately one can answer your question!

-Dillon Compton
team 1394
__________________
www.metalmoose.com
  #5   Spotlight this post!  
Unread 19-03-2006, 08:34
Loki1989's Avatar
Loki1989 Loki1989 is offline
Programming Mentor
AKA: Mike Parker
FRC #1544 (One Byte Short)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Anchorage, Alaska
Posts: 71
Loki1989 will become famous soon enough
Send a message via MSN to Loki1989 Send a message via Yahoo to Loki1989
Re: help on easyC

ok that tells me what i wanted but now i dont understand putting in a while loop because what exactically does a while loop do
__________________
Looking for Team in the NoVA area.

2005 - 2008 Team Member
2006 - 2008 Team Co-Captain
2008 - 2013 Team Mentor
Team 1544
One Byte Short
  #6   Spotlight this post!  
Unread 19-03-2006, 08:42
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: help on easyC

Quote:
Originally Posted by Loki1989
ok that tells me what i wanted but now i dont understand putting in a while loop because what exactically does a while loop do
Those blocks on the palette like "Tank 2 motor", etc. only read the joystick values and send the output to the PWMs once. Generally in your operator control program you have to do that repeatedly until the match is over. That's why you have to enclose those blocks inside of a while loop.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Closed Thread


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 Wish List dcbrown Programming 32 14-08-2006 09:24
EasyC autonomous modes TubaMorg Programming 25 12-04-2006 22:53
EasyC v2.0 is mandatory for FVC! skimoose FIRST Tech Challenge 7 14-01-2006 18:37
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 10:34.

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