Go to Post Every year, everyone reads too much into the hints given by Dave. - EricH [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 21-01-2008, 21:47
CRBreingan CRBreingan is offline
Registered User
FRC #2180 (Zero Gravity)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: New Jersey
Posts: 6
CRBreingan is an unknown quantity at this point
Send a message via AIM to CRBreingan
WPILib and FRC default code

My team used Easy C last year to learn how to program and i guess it worked for what we wanted it to do.
However we wanted more of a challenge so we decided that we were going to write all of my code in MPLab this year.
So far i haven't had a problem with that.

EasyC made programming very fast and... well, easy (hence the name).
And if i'm ever in a pinch and i don't know how to write something in C i'd like to be able to look at how it's written in EasyC so that i can get it done quicker in MPLab. I tried to include the WPI library file in my MPLAB workspace but i keep getting errors saying that there are things being defined more than once.
I just want to add onto the FRC default code from IFI and use easyC to write a piece of code if i don't know how or if i get to lazy to type it.

Basically what i want to do... i guess... is have the robot look to the WPLib secondary to the FRC default library. If something isn't defined in FRC default then it should look in WPI. Is that possible?
  #2   Spotlight this post!  
Unread 22-01-2008, 09:31
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: WPILib and FRC default code

easyC & WPILIB are different architectures from the default code and are not directly compatible. What you should do if you don't want use the easyC's built in C editor you can just use WPILIB and MPLAB/Eclipse.

Maybe someone has a MPLAB project thats all setup you could use.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #3   Spotlight this post!  
Unread 22-01-2008, 10:47
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
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: WPILib and FRC default code

Here is a project that I built with MPLab and instructions for installing MPLab on your computer. Can you try this and see if it works as advertised? I also included a zip file called 2k6. This has the WPILib files that you need to go with the TestProject is you don’t already have those.

Please let me know if it works for you.
Attached Files
File Type: zip 2k6.zip (153.9 KB, 87 views)
File Type: zip TestProject.zip (157.0 KB, 99 views)
File Type: pdf Using WPILib with Microchip tools.pdf (228.5 KB, 75 views)
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #4   Spotlight this post!  
Unread 25-01-2008, 20:46
sfs sfs is offline
Registered User
AKA: Steve Siirila
FRC #2220 (Blue Twilight)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Eagan, MN
Posts: 18
sfs is an unknown quantity at this point
Re: WPILib and FRC default code

Quote:
Originally Posted by BradAMiller View Post
Here is a project that I built with MPLab and instructions for installing MPLab on your computer. Can you try this and see if it works as advertised? I also included a zip file called 2k6. This has the WPILib files that you need to go with the TestProject is you don’t already have those.

Please let me know if it works for you.
The instructions do not mention the need to set the Library Path to C:\MCC18\LIB -- when we omit this, the linker cannot find CLIB.LIB .
Also, why is it that the Include Path is not required (C:\MCC18\H)?
I would have thought that was needed in order for <stdio.h> to be found
when processing the API.h header file. Also, why is "Enable Integer Promotions" needed?
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
WPILib and FRC default code CRBreingan Programming 7 23-01-2008 21:11
FRC Master/Default Code Tom Bottiglieri Programming 7 09-01-2005 18:00
2005 Manuals, FRC Default Code, Other resources Venkatesh General Forum 4 08-01-2005 14:06
FRC default code hedgehogger Programming 2 21-01-2004 18:41
Problem with FRC Default code AsimC Programming 2 11-01-2004 19:22


All times are GMT -5. The time now is 23: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