![]() |
Re: New C18 3.0+ Compatible FRC Code
We're testing the new gyro code, but it overrides all of our commands and sets our pwm outs to 0. Once we put anything referencing the pwm outs we're using, it messes them up. We searched through the code, but we can't find anything that might be causing this. Has anyone else come across this problem?
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
Re: New C18 3.0+ Compatible FRC Code
Quote:
|
Serial Ports
Kevin:
Is there a hard limit at 128 bytes in the Serial Queue's?? RX_1_QUEUE_SIZE 128 // Must be a power of two (i.e.,8,16,32,64,128) |
Re: New C18 3.0+ Compatible FRC Code
(This may be a little bit of a tangent.)
I'd like to report to anyone who's interested that the C18 3.10 compiler works just fine under Wine (on Linux), after fixing one minor issue. I had v 2.4 working under Wine. I ran the upgrade, and then things did not work. I don't remember the exact error, but it did not compile successfully. I copied my mcc18 directory from one machine (where I'd run the upgrade) to a different machine, and it worked fine on the new machine. I then copied my ~/.wine directory from the new machine back to the old machine, and the compiler worked fine. If you plan on using v 3.10 under Wine, my recommendation is to do one of the following: - Run the upgrade on a Windows machine, and then copy over the mcc18 directory to run it under Wine - Make a backup of ~/.wine, then run the upgrade program under Wine, then restore ~/.wine. |
Re: Serial Ports
Quote:
-Kevin |
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
Re: Serial Ports
Quote:
thanks... |
Re: New C18 3.0+ Compatible FRC Code
Quote:
Phil. |
Re: New C18 3.0+ Compatible FRC Code
Kevin,
This is just a thought and should be implemented by teams as they feel their needs require. In the teleop.c file, you currently have the gyro bias calculation process happen in the Teleop function. Code:
void Teleop(void)This may be fine in some instances, but in competition, the robot is powered up in disabled mode, then transitions into autonomous(Hybrid) then back to disabled and finally into teleop. The gyro bias would never be calculated until well after it may be needed. Wouldn't it be better if this code were placed in the disabled.c file in the Disabled function. An additional flag could be set to prevent the bias calc process from running during any additional disabled periods. |
Re: New C18 3.0+ Compatible FRC Code
Quote:
Code:
int limit(int value)Code:
unsigned char limit(int value) |
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
Re: New C18 3.0+ Compatible FRC Code
Quote:
Code:
unsigned char limit(int value) |
Re: New C18 3.0+ Compatible FRC Code
Thank you. I thought it was probably something stupid I did.
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
Dave, thanks for catching my gaff <grin>. -Kevin |
| All times are GMT -5. The time now is 14:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi