Date:2012-12-09 21:27:14 (7 years 3 hours ago)
Author:Werner Almesberger
Commit:2c7d7b78b0e47d4974072fe4013f79b286ea5ddb
Message:tornado/fw/sim/alg.c: dampen more, to also absorb chain jumps

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

Change Details

tornado/fw/sim/alg.c
1212#define F 2 /* rotational speed in Hz */
1313#define R 0.46 /* radius of accelerometer orbit */
1414
15#define H (G/2) /* hysteresis, in accelerometer units */
15#define H (G/3) /* hysteresis, in accelerometer units */
1616
1717
1818/* noise pattern: frequency, amplitude pairs */
...... 
4141}
4242
4343
44#define E_SHIFT 6 /* ~ 0.06 */
45#define M_SHIFT 10 /* ~ 2/S */
44#define E_SHIFT 8 /* ~ 0.06 */
45#define M_SHIFT 11 /* ~ 2/S */
4646
4747
4848static void process(unsigned v)
4949{
50    static uint16_t e = MID << E_SHIFT;
50    static uint32_t e = MID << E_SHIFT;
5151    static uint32_t m = MID << M_SHIFT;
5252    static bool up = 0;
5353    int d;

Archive Download the corresponding diff file

Branches:
master
tornado-v1



interactive