Change Details
| tornado/fw/sim/alg.c |
| 8 | 8 | #define G 28 /* 1 Earth gravity in accelerometer units */ |
| 9 | 9 | #define MID 512 /* accelerometer middle value */ |
| 10 | 10 | |
| 11 | | #define S 1000 /* sample rate (samples/s) */ |
| 11 | #define S 2000 /* sample rate (samples/s) */ |
| 12 | 12 | #define F 2 /* rotational speed in Hz */ |
| 13 | 13 | #define R 0.46 /* radius of accelerometer orbit */ |
| 14 | 14 | |
| ... | ... | |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | |
| 44 | | #define E_SHIFT 3 /* ~ 0.1 */ |
| 45 | | #define M_SHIFT 10 /* ~ 1/S */ |
| 44 | #define E_SHIFT 6 /* ~ 0.06 */ |
| 45 | #define M_SHIFT 10 /* ~ 2/S */ |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | static void process(unsigned v) |
Download the corresponding diff file