blob: 247329ca0cbfc0d57cbeed4d1d2f245c3d48975f (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | DEFINE N_CHANGE_BLOCKS = 200;
FUNCTION le_result_t getSuddenImpact(
  double x [N_CHANGE_BLOCKS] OUT,
  double y [N_CHANGE_BLOCKS] OUT,
  double z [N_CHANGE_BLOCKS] OUT,
  uint64 timestamps[N_CHANGE_BLOCKS] OUT
);
FUNCTION int8 hasSuddenImpact();
FUNCTION le_result_t getCurrentAcceleration(
  double x OUT,
  double y OUT,
  double z OUT
);
 |