Go to Post Sometimes, you just have to beat something (someone?) into submission. Yes, you can use your head, but its a lot easier with a hammer. - Andy A. [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 06-06-2007, 19:35
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
How to get EasyC code into MPLab

sometimes you want to move you code from EasyC to MPLab and here is how you can do it:

EasyC's default is the tab called "Function Blocks." There are two tabs iIn the bottom left corner of the EasyC programming environment. One is labeled "Function Blocks" and the other is "Project".

Here is how you get to the "C" code to copy it out of EasyC:
Click on the "Project" tab.
Expand the desired subsection (Source File, Header File etc.)
Double click on the file you want to copy.
When it opens, it should be the text version alone with no EasyC programming blocks. If it is not, please follow the previous two instructions.
From here you must select what you want to copy and "right-click" and select "copy". (If you press "ctrl+C", you will not get your code!)
Go to where you want to copy the code to and right click then click on paste.


Sorry if someone else posted this. I looked but couldn't find anything.
  #2   Spotlight this post!  
Unread 06-06-2007, 19:38
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: How to get EasyC code into MPLab

Thanks for the tip. It was a frustrating task, having our n00blettes retype their code in MPLAB when they graduated from EasyC. I did not realize you could do this.

Thanks!
Jacob
  #3   Spotlight this post!  
Unread 06-06-2007, 22:21
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: How to get EasyC code into MPLab

Or you can just continue using the built-in text editor in EasyC...
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #4   Spotlight this post!  
Unread 08-06-2007, 11:26
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: How to get EasyC code into MPLab

See the help file under "Advanced Features" for more information.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #5   Spotlight this post!  
Unread 08-06-2007, 11:29
JesseK's Avatar
JesseK JesseK is online now
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,627
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: How to get EasyC code into MPLab

Quote:
Originally Posted by artdutra04 View Post
Or you can just continue using the built-in text editor in EasyC...
You'll have to graduate to real code some day. You can't exactly code advanced functions on an FRC bot in EasyC the way it's setup...or at least I haven't found a way to yet and maybe you have.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
  #6   Spotlight this post!  
Unread 08-06-2007, 14:21
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: How to get EasyC code into MPLab

easyC has a normal editor 'C' text built in that works just like MPLAB. You can type your create your own header files, code files, type your own code, include your own libraries, write structs, variables, you name it. Plus you can convert block code to functions to 'C' functions for tweaking.

All of this is just waiting for you under the "Project" tab.

P.S. all the .c and .h files converted to c code are stored in the projects directory.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 08-06-2007 at 14:32.
  #7   Spotlight this post!  
Unread 08-06-2007, 14:45
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: How to get EasyC code into MPLab

Quote:
Originally Posted by JesseK View Post
You'll have to graduate to real code some day. You can't exactly code advanced functions on an FRC bot in EasyC the way it's setup...or at least I haven't found a way to yet and maybe you have.
We started the year using EasyC PRO to code our robot, but ending up writing the vast majority of it in the text editor using WPIlib (aka the backbone of EasyC). Our robot has full PID sensor-feedback and control loops for every mechanism on our robot, and we have an autonomous mode that drives out (and uses all its sensors for drift correction, exact distances, accident prevention), scores on the rack in a drive-by maneuver, and then stops on the other side of the playing field, without dead reckoning.

I don't think our team ever would have even attempted something as 'advanced' as this before EasyC PRO/WPIlib came out, as this was our first robot (out of our nine) with 100%-complete sensor feedback and absolutely no dead reckoning.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
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
How do you get servo numbers into Angle Degrees Cow Bell Solo Programming 3 18-02-2007 12:16
Converting EasyC Tracking Code into MpLAB Ultima Programming 5 08-02-2007 21:38
how to convert Easy C code into real code? TheHolyLancer Programming 1 29-01-2006 09:09
How to Get EasyC 2.0 Upgrade Kingofl337 Programming 0 22-01-2006 08:54
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 09:31.

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