|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
The first point is that you have to accumulate (integrate) in small enough units that you don't lose precision. Then when you have accumulated enough, you can convert to degrees.
Each unit of sensor input is worth a fraction of a degree, (~1/53). Code:
// 27 mV * sec 1V 127 1 (loop) // ----------- * -- * ---- * ---- // degree 1000 mV 2.5V 0.026 sec more than +53, thats 1 degree.... Also multiply by "delta_t + 1" to account for possible added delay. You could use many other forms of multi-byte math, they are all really doing fixed point math with some scale factor using integers. Last edited by Don Reid : 09-02-2003 at 16:58. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone know where to buy a spare yaw rate sensor? | Jim Meyer | Technical Discussion | 11 | 30-03-2003 21:18 |
| Aux Fuse 3 (Yaw Rate) | Josh Hambright | Electrical | 0 | 18-02-2003 08:22 |
| Yaw rate sensor (gyro for the layperson) | Kris Verdeyen | Rules/Strategy | 4 | 14-01-2002 00:41 |
| Yaw Rate Sensors | dense | Technical Discussion | 4 | 10-01-2002 08:28 |
| Yaw Rate Sensor | ImmacGirl_03 | Technical Discussion | 2 | 10-12-2001 15:15 |