Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   New C18 3.0+ Compatible FRC Code (http://www.chiefdelphi.com/forums/showthread.php?t=60377)

emmell 05-01-2008 19:01

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by Kevin Watson (Post 667854)
Here's a snapshot of the latest build:

http://kevin.org/frc/ifi_frc_beta_3.zip
http://kevin.org/frc/ifi_frc_gyro_beta.zip (with integrated ADC and Gyro code)

-Kevin

Kevin:

Thank you. Thank you. Thank you. Team 832 (as well as other Georgia teams I help with their programming) will definitely make use of your new version.

All of the FIRST community is in your debt for helping all of the teams.

Mannie Lowe

jtdowney 05-01-2008 19:06

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by sparrowkc (Post 668847)
Forgive my noobiness, but is that makefile what I need to develop on ubuntu? Set up c18 in wine, put the file in the directory with the code and do a make? Will that give me a loadable hex file? There was another makefile posted earlier that looked like it was made for Linux, should I use that?

I personally am not using it on Linux but if you change the path of the CC and LD to be the path to wine + the path to the executable, I would imagine it'd work for you no problem. Then you'd just change the value of RM to actually rm.

sparrowkc 05-01-2008 19:17

Re: New C18 3.0+ Compatible FRC Code
 
Great! Thanks! I hate working in a VM.

CPress 05-01-2008 21:47

Re: New C18 3.0+ Compatible FRC Code
 
Thanks Kevin.

Being a new(ish) c programmer, it really helps with all of the useful comments and such. The code is very clean and organized which is always easier to read.

thanks again.

1jbinder 05-01-2008 23:35

Re: New C18 3.0+ Compatible FRC Code
 
Hi,
I'm a freshman in my team, but i have a lot of C experience and was able to decrypt lasts years code. First of all I really like this layout much better. Is there bugs in the code to the point where i should not use part of it for the code this year. Also i know this requires a 3.0+ complier and i was wondering what complier the FIRST FRC controller is meant to work with. I might have this all totally wrong with complier versions because I am new to the complier and also to FIRST.
Thanks
1jbinder
Team 852

jtdowney 05-01-2008 23:41

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by 1jbinder (Post 669332)
Hi,
I'm a freshman in my team, but i have a lot of C experience and was able to decrypt lasts years code. First of all I really like this layout much better. Is there bugs in the code to the point where i should not use part of it for the code this year. Also i know this requires a 3.0+ complier and i was wondering what complier the FIRST FRC controller is meant to work with. I might have this all totally wrong with complier versions because I am new to the complier and also to FIRST.
Thanks
1jbinder
Team 852

There certainly may be bugs but the chances of them not being found before ship is low (Remember with enough eyes, all bugs are shallow). I would think it is perfectly safe to use Kevin's new code on this years RC. The default code from IFI is years past is meant to compile with C18 2.4. I haven't seen this years default code but I suspect that is still the case.

Kevin Watson 05-01-2008 23:48

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by 1jbinder (Post 669332)
...i know this requires a 3.0+ complier and i was wondering what complier the FIRST FRC controller is meant to work with.

The officially supplied version is 2.4, but a free upgrade to 3.10 (don't use 3.15) is available on Microchip's website. I haven't tested it yet, but the freebie student version will probably work just fine. For those who want to stick with 2.4, I just built a version that will work with the older compiler. After I do a bit of testing, I'll post a link to it.

-Kevin

Kevin Watson 06-01-2008 01:23

Re: New C18 3.0+ Compatible FRC Code
 
Here's my first cut at C18 2.4 compatible code:

http://kevin.org/frc/ifi_frc_24_beta.zip
http://kevin.org/frc/ifi_frc_gyro_24_beta.zip (with ADC and gyro code)

Remember this is experimental code, so please do me (and everyone else who might use this code) a favor and let me know if you run into any bugs. Thanks.

-Kevin

EHaskins 06-01-2008 01:56

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by Kevin Watson (Post 669478)
Here's my first cut at C18 2.4 compatible code:

http://kevin.org/frc/ifi_frc_24_beta.zip
http://kevin.org/frc/ifi_frc_gyro_24_beta.zip (with ADC and gyro code)

Remember this is experimental code, so please do me (and everyone else who might use this code) a favor and let me know if you run into any bugs. Thanks.

-Kevin

Can I expect ADC and Gyro code for 3+ to be released soon(within the next week), or should I use the 2.4 version if I need that functionallity?

Thanks,
Eric

Kevin Watson 06-01-2008 02:07

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by EHaskins (Post 669523)
Can I expect ADC and Gyro code for 3+ to be released soon(within the next week), or should I use the 2.4 version if I need that functionallity?

Thanks,
Eric

A link to it was added to the first message of this thread.

-Kevin

paulcd2000 06-01-2008 11:37

Re: New C18 3.0+ Compatible FRC Code
 
I really love the format! much cleaner and easier to use... Please tell me this will become the new standard!

On my only annoyed note: i wish i could see the Main files and Process_data_from_master_uP function. i get antsy if i can't see when everything's being called.

Also, i'd like to re-ask why i would use the Spin functions (maybe if i could see main.c, and i could see when they're bein called...)

Kevin Watson 06-01-2008 13:28

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by paulcd2000 (Post 669708)
On my only annoyed note: i wish i could see the Main files and Process_data_from_master_uP function. i get antsy if i can't see when everything's being called.

Also, i'd like to re-ask why i would use the Spin functions (maybe if i could see main.c, and i could see when they're bein called...)

The code you're looking for is located in ifi_frc.c.

-Kevin

CPress 06-01-2008 15:42

Re: New C18 3.0+ Compatible FRC Code
 
Should I be using MPLAB 8 or the 7.2 that came with the kit of parts?

EHaskins 06-01-2008 16:46

Re: New C18 3.0+ Compatible FRC Code
 
Quote:

Originally Posted by CPress (Post 669936)
Should I be using MPLAB 8 or the 7.2 that came with the kit of parts?

You should use MPLab 8 if you don't wan to have compatibility issues, but you can use 7.2.

CPress 06-01-2008 17:34

Re: New C18 3.0+ Compatible FRC Code
 
Where can I get that?


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi