Go to Post A wrench isn't a nesscary part is it? Last Night, we tested the robot and a large, (yes I said LARGE) wrench fell from somewhere on the robot....Along with bolts, nuts, and a very interestingly cut piece of Aluminum... - Will Bale [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2008, 22:00
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
EASYC PRO HELP rookie programmer here

Hi and thanks to anyone who helps!

I am a new programmer complete rookie i have installed easyc-pro in my own cpu and i am trying to find out the meaning of the commands
I looked at a couple of them life "If" and i was thinking "if i only had pancakes" now i understand how to get a new project underway. REMEMBER THIS IS THE EACYC PRO cd.

IT WOULD BE OF GREAT HELP IF YOU GUYS CAN POST THE MEANING OF THE FOLLOWING COMMANDS AND WHAT THEY DO
INPUTS
OUTPUTS
PROGRAM FLOW (WHICH I UNDERSTAND AND I AM ABLE TO GET THE WHILE 1==1 ON)
RC CONTROL (ANOTHER THING THAT I PARTIALLY UNDERSTAND)
CAMERA?????????????????????????
CONTROL
USER FUNCTIONS

I WOULD LIKE TO KNOW WHICH COMMANDS I WOULD HAVE TO INPUT IN ORDER FOR THE ROBOT TO DO THE BASICS WHICH IS MOVING FORWARD AND BACKWARD!

THANKS ILL BE POSTING SIMULTANEOUSLy for your help and guidance
by the way there is a problem in my keyboard so sometimes the caps lock is working and other times its not aND THIS IS THE RESULT!
__________________
Ayaz Khan

Last edited by mayazk : 26-01-2008 at 22:03.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2008, 22:05
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Mucho dinero HELP!!!!!!! EASYC PRO HELP

For a basic program, you can right click on the OperatorControl() block, and hit open.

Then you can drag a While loop from the Program Flow set into the flowchart, and input the value 1, to create a While(1) loop.

Next, you can open the RC Control set, and click and drag your favorite kind of joystick drive inside the while loop. Just set the values where your speed controllers are and what kind of joysticks you are using.

Then, hit the Compile button at the top (a picture of a stack of notecards with arrows pointing down on them). When thats done, press the button to the right of that button to download the code to the robot.

Let us know where you get stuck!

Hope to be of help,
Jacob
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2008, 22:06
Chris1228 Chris1228 is offline
Registered User
FRC #1228
 
Join Date: Sep 2007
Location: Rahway, NJ
Posts: 22
Chris1228 will become famous soon enough
Re: EASYC PRO HELP rookie programmer here

Hey,
I am pretty good at the Easy C Programming and I am willing to help you out. What exactly do you need? I know you wanted to know what the camera and stuff does. Are you programming for the US First Robotics or Vex?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2008, 22:14
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

WOW you guys dont waste any time in replying
thanks for the immediate reply

RIGHT NOW I HAVE BEEN ABLE TO GET THE WHILE LOOP AND EVERYTHING IS GOING SMOOTHLY I WILL HAVE MORE UPDATES ON TUESDAY BECAUSE THAT IS GOING TO BE OUR NEXT MEETINg and i am programming for US First Robotics by the way out of curiosity what is vex? another competition? anyhow i need to know how to program the robot for tank drive and once i feel easy with that my next step for a new project will be AIRPLANE DRIVE BUT RIGHT NOW LETS WORRY ABOUT THE TANk drive
thanks alot
__________________
Ayaz Khan
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2008, 17:01
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

Quote:
Originally Posted by Chris1228 View Post
I am pretty good at the Easy C Programming and I am willing to help you out. What exactly do you need?
thanks for all the help i need to know how to set programming for tank drive
__________________
Ayaz Khan
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2008, 17:41
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: EASYC PRO HELP rookie programmer here

Select either Tank-2 motor or Tank 4-motor from RC Control and place the block in your While loop. Then click on 'Help' to help you through the rest!
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2008, 18:11
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,019
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: EASYC PRO HELP rookie programmer here

Exactly what Jon236 said: Just drag "4 wheel tank drive" over and drop it inside your while loop. This gives you four PWM outputs (2 victors per side, which is what you have!). The help function will tell you which PWM Outout goes to which motor (left or right).

OK, now that you've programmed tank drive, anything else you want to do?? (Yes, it is that easy....).

OK, Let's talk about Inputs and Outputs.

Inputs give you blocks to handle any information that needs to come IN to the robot controller. Like a limit switch. For a limit switch, you would wire it up so it connects the Signal Pin of a Digital Input to ground when the switch is actuated (pressed). (The black wire of a Digital INput connection is ground). Then you'd read the condition of that digital input pin (using that digital input block you dragged in there), it will be a 1 or a 0 (not pressed or pressed) and you can use that somewhere else to make the robot do something.

In this case, you need to create and define a Variable (in the Variables section) with a name like "Limit_Switch_On_Arm" (something that explains what it does) as an INT (look up the different types of variables, maybe there's a better choice?). Then, in the Digital Input block, you set the value of the Variable to whatever the input block is "seeing" from the limit switch (you also define which of the Digitial Inputs it's connected to).

Outputs
are how you send something OUT of the robot controller - like to make a motor go or stop. So, to make the motor for your manipulator arm move, you can drop a motor block in there, define that it applies to motor (PWM) output #5 (or whatever), and tell the program which variable name (like "Arm_Motor_Output") you're using to set the PWM value, and it'll do it.

Let's say you want to make sure the motor won't move forward after it hits the limit switch (In this example, "forward" is any PWM value from 128 to 255), you can do something like...

Code:
If 
             Limit_Switch_on_Arm = 1
     If 
             Arm_Motor_Output >127
         Then 
                Arm_Motor_Output == 127
     EndIf
EndIf
Now, that "code" won't really work, becasue you need to use 'program flow' blocks, input blocks and output blocks in there, not so many words.

Does this make some sense?

Here's a project for you to try:

Wire up a switch to short the Digital Input 1 signal pin to ground when the switch is pressed.
Hook up the switch to Digital Input 1.
Hook up a victor to a motor, and to PWM output 8
When Digital Input 1 = 0 (the switch is pressed), set the output of PWM 8 to 250. Otherwise it is set to 127.

What should happen is that when the switch is pressed, the motor turns. When you let go of the switch, the motor stops.

The last point:
MAKE COMMENTS FOR EVERY SINGLE STEP. This is very important. It may seem stupid to you, but this is the way it is supposed to be done. Write a comment for every single step explaining what that step is supposed to do. Later, when your code is several hundred lines, and you don't remember what you did (this WILL happen), the comments will help you a LOT. Use several lines of comments if you need to, and put in comments for major program blocks (there's a Comment clock in the Program Flow library - its there for a good reason)

Have fun, and ASK QUESTIONS

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2008, 22:15
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

List of activities done
1 I WAS ABLE TO PUT IN THE while 1==1 loop
2 I WAS ABLE TO PUT THE TANK 4 MOTOR
3 I WAS ABLE TO DOWNLOAD THEM TO THE ROBOT CONTROLLER
4 USING THE CONTROLLERS I WAS ABLE TO SEE THE GEAR MOVING IRREGULARY

THE QUESTIONS!!!!!

WHEN I ASSIGNED left operator interface PORT # AND AXIS # "1 AND 2" AND right operator interface port # axis# "2 and 1"

the left controller when pushed up would move the motor clockwise and then when pressed down counter clockwise

THE PROBLEM!!!!!!!

WHEN I TOOK OUT THE VITOR CONNECTION TO THE INTERFACE AND PLACED THE WIRE IN THE 3 AND 4 PWM THE RIGHT OPERATOR INTERFACE DID NOT RESPOND UP AND DOWN RATHER LEFT AND RIGHT (AWKWARD THATS WHAT I THINK) SO WHAT ARE THE PORT# AND AXIS # SO THE GEARS IN THE 3 AND 4TH PWM ALSO MOVE FORWARD AND BACKWARD????

OR AM I DOING SOMETHING SO WRONG THAT IT WAS NEVER TO BE DONE!!!!
__________________
Ayaz Khan
Reply With Quote
  #9   Spotlight this post!  
Unread 29-01-2008, 22:26
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: EASYC PRO HELP rookie programmer here

This is a good question.

The "Port" is referring the port in which you have your Joystick connected to.

The "Axis" is referring to which axis of the joystick you'd like to use.

You need to set the "Port" for the joystick you are using, and the "Axis" for the axis you'd like to use (it says, 1=x-axis, 2=y-axis, and so on.)

Hope this helps,
Jacob
Reply With Quote
  #10   Spotlight this post!  
Unread 30-01-2008, 12:31
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

Ok
if the axis is set to 1 then the joystick when moved forwardwill rotate clockwise and when pushed backwards it will rotate counter clockwise?

Is that what your refferingto?
__________________
Ayaz Khan
Reply With Quote
  #11   Spotlight this post!  
Unread 30-01-2008, 14:03
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: EASYC PRO HELP rookie programmer here

The left hand set of boxes are for Forward/Reverse (assuming you are using the Arcade drive), and Axis 2 should be used, which is the Y axis. The right hand set of boxes are for Rotational, in which Axis 1 should be used, which is the X axis.

If you are using Tank drive, you just need to read what each parameter does. I don't remember offhand. Sorry.

Jacob
Reply With Quote
  #12   Spotlight this post!  
Unread 30-01-2008, 14:06
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: EASYC PRO HELP rookie programmer here

The X axis is left-right motion of the joystick. The Y axis is forward-backward motion of the joystick.

The WHEEL signal comes from the throttle wheel of a CF Flightstick, or from the "hat" switch of the white KOP joystick. The AUX signal isn't provided by anything built in; it's for you to connect your own variable resistor to control something.
Reply With Quote
  #13   Spotlight this post!  
Unread 30-01-2008, 20:54
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

Thanks for your help and i saved it as TANK PROJ1
NOW I WOULD LIKE TO START A NEW PROJECT AIRPLANE DRIVE

CAN ANYONE EXPLAIN TO ME HOW TO START WITH AIRPLANE MODE!
STEP BY STEP WOULD BE SO KIND THANKS ALOT!
__________________
Ayaz Khan
Reply With Quote
  #14   Spotlight this post!  
Unread 30-01-2008, 20:57
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: EASYC PRO HELP rookie programmer here

Not too sure what you mean by "Airplane drive." Could you perhaps explain briefly as to how this is controlled?

Or perhaps this is something that's common, and that I'm just not familiar with.

Thanks!
Jacob
Reply With Quote
  #15   Spotlight this post!  
Unread 31-01-2008, 09:44
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: EASYC PRO HELP rookie programmer here

Airplane drive is basically the robot acting like a remote control car where in tank drive the joysticks only move forward and backward

in airplane drive one of the joysticks move left and right rather than both going back and forward!

so how do i program that!
__________________
Ayaz Khan
Reply With Quote
Reply


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
MS Vista/EasyC & EasyC Pro rswsmay Programming 1 25-04-2007 10:47
easyC Pro help! shlomi Programming 1 08-02-2007 06:48
Kickoff easyC workshop integrated into EasyC help file Dan Larochelle Programming 0 11-01-2006 06:12
Windows 2000 & XP Pro Edition Help Raven_Writer Chit-Chat 4 25-02-2004 19:30


All times are GMT -5. The time now is 06:12.

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