|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Accelerometer functions
I noticed there are GetVelocity and GetDistance functions in the library that are not documented, and if I call them (int GetDistance(unsigned char port) assumed for example), the values are always increasing even though the GetAcceleration values appear to be read perfectly fine.
Brad, please provide the docs for how to use these functions. I have initialized and started the accelerometer in question. Thank you Brad, WPILib is working great for our team and has certainly simplified teaching the students how to program the robot and teach them C at the same time. |
|
#2
|
|||
|
|||
|
Re: Accelerometer functions
Quote:
I think to really work it needs some more serious filtering to get reliable numbers. |
|
#3
|
||||
|
||||
|
Re: Accelerometer functions
Thank you for looking into it. As time is short, we will have to stick with a gear tooth sensor for now. Too bad, it would have been an interesting application for data collection on the robot's movement as well.
Thank you for the effort though. |
|
#4
|
|||
|
|||
|
Re: Accelerometer functions
Did this ever get looked into more? Where can I download these functions? I don't have WPilib, just MPlab. I have some experience with Kalman filters, and could take a look at this to get working better.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera functions. | winners | Programming | 1 | 21-01-2006 19:42 |
| Auton + Functions | ten3brousone | Programming | 0 | 27-02-2005 20:11 |
| Cordic functions... | Zalumaskov | Programming | 1 | 13-02-2005 00:58 |
| Trigometric Functions | cibressus53 | Programming | 4 | 25-10-2004 21:49 |
| subs/functions | maDGag | Programming | 2 | 16-02-2003 23:27 |