Date:2012-12-09 21:15:30 (7 years 4 days ago)
Author:Werner Almesberger
Commit:ce9caf0f3baa50d46a52d28b7afc215770b24158
Message:tornado/fw/sim/alg.c: tune EWMA weights; correct sample rate for simulation

Files: tornado/fw/sim/alg.c (2 diffs)

Change Details

tornado/fw/sim/alg.c
88#define G 28 /* 1 Earth gravity in accelerometer units */
99#define MID 512 /* accelerometer middle value */
1010
11#define S 1000 /* sample rate (samples/s) */
11#define S 2000 /* sample rate (samples/s) */
1212#define F 2 /* rotational speed in Hz */
1313#define R 0.46 /* radius of accelerometer orbit */
1414
...... 
4141}
4242
4343
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 */
4646
4747
4848static void process(unsigned v)

Archive Download the corresponding diff file

Branches:
master
tornado-v1



interactive