|
|
|
![]() |
|
|||||||
|
||||||||
| 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 |
|
|
|
#1
|
|||
|
|||
|
Re: Development enviroments orther than MPLAB
wine+mcc18+makefile+ifi_picloader
works way better than MPLAB since I can use vim or kate or whatever else I want, and the cli bootloader feels less clumsy than ifi's loader. |
|
#2
|
|||
|
|||
|
Re: Development enviroments orther than MPLAB
i would do something else, but im too lazy
|
|
#3
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
horray for vim, the true "programmer's text editor"
|
|
#4
|
|||||
|
|||||
|
Re: Development enviroments orther than MPLAB
Quote:
(you know youve been coding with vim too long when you start hitting j and k when your on the web... Thank heaven FireFox knows to start searching when you hit /) |
|
#5
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
![]() |
|
#6
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Actually, I find vim scary.
![]() My team used MPLAB + Windows since I was the only one with Linux on their machine. Plus, I didn't find out until later that others got the IFI_Loader to work with WINE with no major problems. |
|
#7
|
|||
|
|||
|
Re: Development enviroments orther than MPLAB
afaik, the ifi loader still doesn't work through wine. A new one was coded from scratch to do the job.
|
|
#8
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Same thing.
![]() |
|
#9
|
||||
|
||||
|
I used the MPLAB IDE with windows cuz I was way to lazy to use anything else, I mean most of my code is just the default; My team was kinda picky about having it working b4 we shipped;
|
|
#10
|
|||||
|
|||||
|
Re: Development enviroments orther than MPLAB
The bot barely worked when we shipped. And the code was screwed up so badly that the controller gave us a red-green. (RGOD!) Or an infinate loop.
|
|
#11
|
||||
|
||||
Thats nothing all our robot did when we shipped it was spin in a circle. cuz the stupid build team put one of the fricking moters in backwards. I think that when we get there i can download a code that works but we will literally be testing it on our bot for the first time then. If anything goes wrong i am sure that all you programers out there know that it is me who will be blamed for screwing it up, even though if the builders whould have put it in right it would not have been a problem. ![]() |
|
#12
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Our situation is sort of weird. I definitely like where we went with the robot and if it turns out correctly, look out for Miss Daisy. We didn't make too many modications to the code, not enough to warrant switching from Windows or anything. The problem is that our code hadn't been tested with the robot at all before we shipped. But we have some good programmers and I think that we will definitely turn out okay. See ya at Chesapeake.
|
|
#13
|
||||
|
||||
|
Re: Development enviroments orther than MPLAB
Quote:
![]() |
|
#14
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|