|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#316
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin (If you can't wait and promise to report any bugs you find, here's a snapshot of the latest build without the gyro mods) |
|
#317
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
I've posted a snapshot of what I hope is the last build for a while. The changes are numerous and include improved gyro code. The documentation still needs some work, but the code should be complete. If you're willing to test it and provide feedback and/or bug report(s), you'll find it here: http://kevin.org/frc/ifi_frc_sensor.zip.
-Kevin |
|
#318
|
|||
|
|||
|
Get_Gyro_Rate() returns jumpy values
when I call Get_Gyro_Rate() it tends to give occasional outliers and data that doesn't make sense. When I turn the gyro constantly one direction, jumps back and forth between positive numbers. Get_Gyro_Angle() works fine and is accurate. I am testing with last year's kit gyro.
Last edited by sparrowkc : 29-01-2008 at 16:32. Reason: typo |
|
#319
|
|||||
|
|||||
|
Re: Get_Gyro_Rate() returns jumpy values
Quote:
|
|
#320
|
|||
|
|||
|
Re: Get_Gyro_Rate() returns jumpy values
I downloaded the Sensors code from Kevin's site just yesterday, was it not fixed then?
|
|
#321
|
||||
|
||||
|
Re: Get_Gyro_Rate() returns jumpy values
Quote:
-Kevin |
|
#322
|
|||||
|
|||||
|
Re: New C18 3.0+ Compatible FRC Code
Just transferring the new code over to my dev. code.
Noticed that the Get_Gyro_Bias_Status() function looks like a bad cut/paste from another function. No return value. Quote:
|
|
#323
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Other than the Get_Gyro_Bias_Status Phil noted above, I haven't found any problems with the latest code. I only messed around with the relativly simple stuff today - I'll be doing some more intensive encoder and gyro (maybe) based testing tomorrow, so I'll let you know about those after I do that.
|
|
#324
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code - New Build
Great work Kevin
had running a gyro, a MatBotrix Ultrasonic ranger and an encoder!!!! To get values from the MatBotrix, I needed to use Get_ADC_Result and then Convert_ADC_to_mV....the Get_Analog_Value didn't work. |
|
#325
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#326
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#327
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#328
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code - New Build
I'm pretty sure you'll get corrupted data if you try to use Get_Analog_Value() while the ADC code is running in the background.
-Kevin |
|
#329
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
I'm having a huge problem with the lastest code I just downloaded 2 hours ago. I'm using version 2.4 of the compiler. I followed all of the instructions in the readmes, but if I call Initialize_ADC(); and Initialize_Gyro(); in teleop/Initialization(), I'll get a blinking red and green light next to program state on the rc. On the output window, "IFI User Pr" shows up, making me think that it runs into an error in the middle of trying to print the printf:IFI User Processor Initialized ...\r\n. There are no problems when those 2 function calls are commented out(initialize gyro and adc). I've tried a combination of commenting and uncommenting the gyro code in teleop and the process_gyro_data function in teleop_spin. I don't get this problem with an earlier version of the 2.4 gyro beta code. I'm really not sure what to do. Any one else have this problem? Does this work for anyone using 2.4- the hex file builds and in ifi_frc.h I have USE_C18_24 #defined only. I'd really appreciate any suggestions. Thanks.
|
|
#330
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does the camera code suits to all versions of MPLAB and C18? | razer | Programming | 3 | 04-01-2007 14:50 |
| Trying to follow C18 interrupt context code... | dcbrown | Programming | 5 | 21-12-2006 09:01 |
| Error w/ FRC code | JamesBrown | Programming | 2 | 08-01-2005 16:17 |
| Programming code Fix FRC | Ferazel2001 | Programming | 6 | 08-02-2004 02:46 |
| FRC default code | hedgehogger | Programming | 2 | 21-01-2004 18:41 |