|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: C coding
You can download easyC Pro at http://www.intelitekdownloads.com
and you can have a mentor e-mail us to request your team CD-Key. If you are a 08 Rookie we can create a team key to get you started. If you have a Vex robot can you prototype code in Vex mode to learn how things work. |
|
#2
|
||||
|
||||
|
Re: C coding
Welcome to programming! I just learned how to program a few months ago, and I'm pretty good now. If you're anything like me, then you learn by a hands on example. To get started, download the robot code off of ifirobotics.com; while at IFI, download the IFI_Loader. Next you'll need MPLAB with the C18 compiler. The main program you'll program with is User_Routines.c Just look at the code and try to figure out how it works. pwm?? are the PWM outputs on the controller. 127 is center/off. Relays are H bridges, so fwd triggers one relay, and rev triggers the other relay. If you have both on or both off, whatever you are controlling will remain off. You must have a 1 and 0 or a 0 and 1 to turn something on. In robotics, you will usually leave rev at 0 and then turn fwd on and off because of the polarity of the devices. Controls are pretty simple too, it's all in user_routines.c Good luck with programming and feel free to contact me.
|
|
#3
|
|||
|
|||
|
Re: C coding
Quote:
The MPLab IDE is fairly easy to set up and use from my experience. The code FIRST gives you takes a lot of the learning curve of programming micro-controllers out of the picture and allows you to code basic functionality without knowing the particulars of the device. It may seem intimidating at first because of the sheer volume of code, but once you figure out which sections you need to be concerned with you should find programming the robot controller straightforward. -Ken |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Photoswitch coding | magical hands | Programming | 0 | 17-01-2006 21:20 |
| coding problem!! HELP! | wildabyss | Programming | 7 | 21-02-2005 21:48 |
| Pneumatic Coding Problem | lasoaaro | Pneumatics | 11 | 18-02-2005 12:11 |
| coding a potentiometer | incognito_NICK | Programming | 5 | 14-02-2005 15:56 |
| Coding conventions | Anthony Kesich | Programming | 20 | 08-01-2004 10:50 |