![]() |
Re: New C18 3.0+ Compatible FRC Code
Kevin,
As the TechnoTicks (236) programming team's mentor, I want to thank you for your great code template. We were able to accomplish a great autonomous mode by running laps with the use of encoders as well as provide for controllable mecanum drive. The traditional view is that to control mecanum drives you need velocity feedback on each wheel; I argued (and proved) that a gyro would work as well. Our programmers used EasyC last year and graduated to using MPLab this season. Your code provided a clean and logical template for them to start. It was a lot easier teaching the new members of our team as well! |
Re: New C18 3.0+ Compatible FRC Code
"The proof of the pudding is in the eating"
Team 709 used Kevin's new code with gyro, A/D, encoders, and two serial ports all integrated as we battled hard at the Chesapeake Regional, and that software was rock solid, baby! We also integrated your ir_sensor module after our IR board died, and it basically dropped right in. Really nice and simple approach! Can't wait for the Philly regional! I think the students have just picked up on the flow of the software so easily and so well, compared to previous years, I just can't thank you enough for doing this! |
Re: New C18 3.0+ Compatible FRC Code
Hello Kevin,
I'm Veevee from team 2036 and I've been scrolling through this thread and found somebody with the same issue, but apparently they could fix it...and I still can't seem to figure this out. Our team's IR board has fried so we're trying to implement your solution to it. Yeah, this is late I know, but our team doesn't necessarily need the IR board, we just recently decided we might as well try and get it to work though if we can. I'm relatively new to programming, but here's my issue: I'm using MPLAB v8.00 and C18 v3.10, but we still get the tmpdata/pragma error that some other people had earlier but fixed by updating...I'm decently certain everything's up to date on my machine though...: Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\autonomous.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "autonomous.c" -fo="autonomous.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\disabled.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "disabled.c" -fo="disabled.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\ifi_code.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "ifi_code.c" -fo="ifi_code.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\ifi_frc.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "ifi_frc.c" -fo="ifi_frc.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:\Documents and Settings\Science\Desktop\ifi_frc\ifi_frc.c:263:War ning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\ifi_frc.c:266:Err or [1020] unexpected input following 'interrupt' C:\Documents and Settings\Science\Desktop\ifi_frc\ifi_frc.c:392:War ning [2002] unknown pragma 'tmpdata' Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\interrupts.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "interrupts.c" -fo="interrupts.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\pwm.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "pwm.c" -fo="pwm.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "serial_ports.c" -fo="serial_ports.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:93 5:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:10 02:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:10 28:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:10 95:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:11 21:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:11 61:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:11 87:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\serial_ports.c:12 27:Warning [2002] unknown pragma 'tmpdata' Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\teleop.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "teleop.c" -fo="teleop.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\timers.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "timers.c" -fo="timers.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\encoder.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "encoder.c" -fo="encoder.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\gyro.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "gyro.c" -fo="gyro.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- Make: The target "C:\Documents and Settings\Science\Desktop\ifi_frc\adc.o" is out of date. Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "adc.c" -fo="adc.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:\Documents and Settings\Science\Desktop\ifi_frc\adc.c:387:Warning [2002] unknown pragma 'tmpdata' C:\Documents and Settings\Science\Desktop\ifi_frc\adc.c:442:Warning [2002] unknown pragma 'tmpdata' Skipping link step. Not all sources built successfully. BUILD FAILED: Wed Mar 26 10:50:49 2008 None of thecode has been modified at all, I'm just trying to compile your original code so far. If you could help at all, thanks very much! |
Re: New C18 3.0+ Compatible FRC Code
I have no idea if this will help, but can you open a command window, change directories to C:\mcc18\bin, and run "mcc18 -v"? This should confirm what version of C18 you're running, and I'm just curious if it's the right one.
|
Re: New C18 3.0+ Compatible FRC Code
Hmm...I tried reinstalling C18 v3.1 and now it seems to be working. Thanks for your help! (Last time I checked by going into the folder and clicking on the readme file for C18...and it said v3.10...perhaps it's different still though?)
|
Re: New C18 3.0+ Compatible FRC Code
Since it has to do with the 3.0+ code, I figure I'll post the question here:
quick_adc.c/h says it's incompatible with the adc.c/h code, but I think our 'bot very briefly needs the functionality. We're using a decade thumb wheel rigged as a voltage divider for an autonomous mode selector. (Delays, starting position, etc.) I really really don't want to waste 400-800 samples per second on an analog value we only need to read once after the RC initializes. Since the Quick_ADC(n) function seems just to be making a standard blocking ADC conversion, is there any reason we can't call this in our Initialization() code right before we call Initialize_ADC()? I realize the potential pitfalls with match restarts, etc., but I'll still feel silly burning that many cycles on something like this. |
Re: New C18 3.0+ Compatible FRC Code
Quote:
Although, I think an answer from Kevin would be the most prudent considering he knows his code inside and out.:) |
| 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