Go to Post We can read about torque and speed in books, we can build a robot and drive it, but determination and character are built by time and encouragement, not just by studying. - Eugenia Gabrielov [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 11-03-2008, 17:42
Joe G.'s Avatar
Joe G. Joe G. is offline
Taking a few years (mostly) off
AKA: Josepher
no team (Formerly 1687, 5400)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2007
Location: Worcester, MA
Posts: 1,451
Joe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond repute
Send a message via AIM to Joe G.
A few basic EasyC Pro questions

I have been assigned to take the lead on programming our robot. No one else on my team has programmed before, and I only have very limited experience with EasyC V2 For Vex. I have a few questions about how to program our FRC bot with EasyC pro, as it appears very much geared towards VEX

-Do functions such as 2 motor arcade work with FRC?
-How do I add more than 2 reciever ports (four joysticks) (or is it all one port with a bunch of channels?)
-Same with PWMs, relays.
-Do I need anything special in the initialize program?
-Will the online window work with FRC?
-I assume that the Vex USB converter will also work with FRC, am I correct?

Please correct any blatant misconceptions I may appear to have through this post, as I am very much a mechanical engineer at heart
__________________
FIRST is not about doing what you can with what you know. It is about doing what you thought impossible, with what you were inspired to become.

2007-2010: Student, FRC 1687, Highlander Robotics
2012-2014: Technical Mentor, FRC 1687, Highlander Robotics
2015-2016: Lead Mentor, FRC 5400, Team WARP
2016-???: Volunteer and freelance mentor-for-hire
  #2   Spotlight this post!  
Unread 11-03-2008, 17:59
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: A few basic EasyC Pro questions

First you need to set EasyC to FRC mode. You can do this in options>Robot Controller Setup.

Many of the functions will change after you change controller types. Explore the environment after you change the controller.

I have never tried the online windows, so I don't know.

The converter will work fine.

EDIT: Just to be clear, if a function appear while in FRC mode, it will work.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 11-03-2008, 18:00
Joe G.'s Avatar
Joe G. Joe G. is offline
Taking a few years (mostly) off
AKA: Josepher
no team (Formerly 1687, 5400)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2007
Location: Worcester, MA
Posts: 1,451
Joe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond repute
Send a message via AIM to Joe G.
Re: A few basic EasyC Pro questions

Thank you very much, I had a feeling I was missing a "switch to FRC mode" button.
__________________
FIRST is not about doing what you can with what you know. It is about doing what you thought impossible, with what you were inspired to become.

2007-2010: Student, FRC 1687, Highlander Robotics
2012-2014: Technical Mentor, FRC 1687, Highlander Robotics
2015-2016: Lead Mentor, FRC 5400, Team WARP
2016-???: Volunteer and freelance mentor-for-hire
  #4   Spotlight this post!  
Unread 11-03-2008, 18:49
Joe G.'s Avatar
Joe G. Joe G. is offline
Taking a few years (mostly) off
AKA: Josepher
no team (Formerly 1687, 5400)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2007
Location: Worcester, MA
Posts: 1,451
Joe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond repute
Send a message via AIM to Joe G.
Re: A few basic EasyC Pro questions

One more question: How would I control a relay using a joystick? I want it so that, when the joystick is pushed 50% in either direction, the relay turns on accordingly, but I cannot find a direct way to operate a relay with a joystick.
__________________
FIRST is not about doing what you can with what you know. It is about doing what you thought impossible, with what you were inspired to become.

2007-2010: Student, FRC 1687, Highlander Robotics
2012-2014: Technical Mentor, FRC 1687, Highlander Robotics
2015-2016: Lead Mentor, FRC 5400, Team WARP
2016-???: Volunteer and freelance mentor-for-hire
  #5   Spotlight this post!  
Unread 11-03-2008, 19:09
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: A few basic EasyC Pro questions

Quote:
Originally Posted by rocketperson44 View Post
One more question: How would I control a relay using a joystick? I want it so that, when the joystick is pushed 50% in either direction, the relay turns on accordingly, but I cannot find a direct way to operate a relay with a joystick.
Code:
#include "Main.h"

void OperatorControl ( void )
{
      unsigned char temp; 

      temp = GetOIAInput ( 1 , 1 ) ;
      if ( temp > 192 )
      {
            SetRelay ( 1 , 1 , 0 ) ;
      }
      else if (  temp < 64 )
      {
            SetRelay ( 1 , 0 , 1 ) ;
      }
      else
      {
            SetRelay ( 1 , 0 , 0 ) ;
      }
}
__________________
Eric Haskins KC9JVH
  #6   Spotlight this post!  
Unread 11-03-2008, 21:18
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: A few basic EasyC Pro questions

Quote:
Originally Posted by rocketperson44 View Post
-Do functions such as 2 motor arcade work with FRC?
Yes, there is 2 motor arcade, 4 motor arcade, and same with tank drive. Simply set your joystick ports and axis, and your PWM outputs (and maybe inverts if your drive isn't set up like in the picture.)
Quote:
Originally Posted by rocketperson44 View Post
-How do I add more than 2 reciever ports (four joysticks) (or is it all one port with a bunch of channels?)
When you go to use a function block that uses joysticks, you set the joystick port, and then the axis/button (depending on analog or digital)
Quote:
Originally Posted by rocketperson44 View Post
-Same with PWMs, relays.
All PWM and relays are accessible.
Quote:
Originally Posted by rocketperson44 View Post
-Do I need anything special in the initialize program?
I like to set my driver motors to 127, initialize my camera, etc. Nothing is required here.
Quote:
Originally Posted by rocketperson44 View Post
-Will the online window work with FRC?
Yep, the terminal window is the same.
Quote:
Originally Posted by rocketperson44 View Post
-I assume that the Vex USB converter will also work with FRC, am I correct?
Yep, USB to serial is USB to serial.
Quote:
Originally Posted by rocketperson44 View Post
One more question: How would I control a relay using a joystick? I want it so that, when the joystick is pushed 50% in either direction, the relay turns on accordingly, but I cannot find a direct way to operate a relay with a joystick.
You can directly operate a relay using BUTTONS on the joystick, using the OI to Relay command under the "RC Control" set. If you want it so that it works on the joystick axis, Eric's code is great.

[/quote]
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
Math in EasyC pro TonyP Programming 1 04-02-2008 09:57
EasyC Pro basic help in the English Language (You get me...) TERTOLA Programming 3 02-02-2008 09:44
MS Vista/EasyC & EasyC Pro rswsmay Programming 1 25-04-2007 10:47
Please post any new questions in the easyC PRO Forum Kingofl337 Programming 0 16-01-2007 11:43


All times are GMT -5. The time now is 22:20.

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