|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: What do you use to program the robot? | |||
| MPLAB + Windows |
|
28 | 66.67% |
| Makefile + Windows |
|
5 | 11.90% |
| Linux + WINE |
|
5 | 11.90% |
| Linux + MPLAB |
|
1 | 2.38% |
| Other |
|
3 | 7.14% |
| Voters: 42. You may not vote on this poll | |||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Development enviroments orther than MPLAB
I voted for MPLAB, but I just did MSC++ .NET, and I'm really happy.
Now that's an IDE. |
|
#17
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
![]() As my old signature used to say, "I'm not anti-Microsoft, I'm just pro-quality." ![]() Yeah, MSC++ .NET is great (surprisingly, a good Microsoft product). The only reason I didn't use it is MPLAB allowed quick access to the compiler, while MSC++ .NET isn't custimizable for that sort of thing. Next year I'm going to find something better for our controls team to use. ![]() Last edited by Ryan M. : 12-03-2004 at 21:31. |
|
#18
|
|||
|
|||
|
Re: Development enviroments orther than MPLAB
GVim/Vim + Cygwin + IDE for compilation. Don't have access to a linux computer other than at home for programming, and too lazy to figure out how to use MCC's command line.
|
|
#19
|
|||||
|
|||||
|
Re: Development enviroments orther than MPLAB
Compared with the general rabble, Microsoft almost caters to developers.
|
|
#20
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Its too bad that only 3 voted for linux...Most of my team is affraid of it, including the other programmer, so im stuck using windows at the competitions...
|
|
#21
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
I use ActiveState's Komodo a lot, otherwise Eclipse is worth a good look. Both are available under Linux or Windows. KDevelop under Linux is also worth a good look.
A lot of bots didn't work right off the bat at the early competitions, because people didn't follow the latest IFI/FIRST news about software updates and weird initial states upon RC startup. As for NMAKE, it's piece of $@#$@#$@#$@#. Gnu MAKE is available for Windows as well. Though I think it's high time that somebody come out with a better MAKE one of these days. |
|
#22
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
We decided early on to scrap the MPLAB IDE and use cygwin & make instead. After a month or so I finally convinced the other mentors to use VIM. Now we're actually teaching the students how to use it.
An invaluable development tool I found a few years ago is cscope (http://cscope.sourceforge.net/). It parses all the source & header files in your build and creates a 'database' that allows you to quickly jump to a function definition, find all calls of a function, find all references to a symbol, etc. Even better you can integrate it with VIM so all you have to do is put your curser on a function call, hit <ctl>] and you're now at the function definition; hit g<ctl>\ and you have a list of all occurrances of the symbol under the cursor. I'd probably be half as productive at work if I didn't have VIM & cscope. Give it a try. If you need help send me a PM or start a new thread. |
|
#23
|
|||
|
|||
|
Re: Development enviroments orther than MPLAB
I got our code working the day of shipping this year (goes to show how having access to the robot is a good thing eh). Last year however, we never really had the time to test, so we got to our regonal, and didn't move for hte first 2 practice matchs. Seems auto code didn't work right, go figure.
![]() |
|
#24
|
|||||
|
|||||
|
Re: Development enviroments orther than MPLAB
Cool! I like that. MS has been doing it for awhile, but it's nice to now someone else is.
|
|
#25
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
![]() |
|
#26
|
||||
|
||||
|
Ok I admit that is worse then what I had, but it is kinda funny; you must admit
But your team didn't know how well the code worked when you shipped yours, they knew that mine just made it spin around and around which was definatly not a confidence booster. But I am hopeing to have it compile Today. This code that I have now better work or you may not see me at any compitions cuz my team will have killed me. ![]() |
|
#27
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
Code:
// Set the left and right drive motors to the specified speed values.
//
// The speed values must be in the range [-127, 127].
// For both motors:
// 0 is stop
// postive values move that wheel forward
// negative values move that wheel backward
//
void SetDriveMotors(int speedLeft, int speedRight)
{
pwmWheelL = pwm01 + speedLeft;
pwmWheelR = pwm02 + speedRight;
}
This chunk of code is the only place that has to keep track of "bigger than 127 goes forward, less is backward, proportional to the difference" or the other way around if either motor is wired the other way. It's much easier to read "SetDriveMotors(10, -10)" than "pwm01 = 137; pwm02 = 117;" and know that it's asking for a slow right turn. If one of the motors gets wired backwards, it's trivial to change the +/- for that motor in one well-defined place. (We also put polarized connectors on the motors, so that motors can't get reversed for anything less than a motor replacement.) It's also trivial to move the drive motor to a different PWM if need be. The software team gets so little time with the working robot, it doesn't pay to spend time and energy blaming the build/electronics team for something being backwards. If you keep the knowledge localized in the code, it's trivial to adjust, compile and download. This is especially handy if you just finished a big repair two minutes before the next match and there's no time to crawl back in and reverse a couple of wires. |
|
#28
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
|
|
#29
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
|
|
#30
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
eh... I'm lazy... BTW Does anyone know what the heck is up with this error in mplink?
"Error - could not find file 'clib.lib'" I keep getting that when I try to compile on my own computer. I checked and clib.lib is right where it's supposed to be. Does it matter that I'm using the demo of c18? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|