-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreplay.h
More file actions
executable file
·55 lines (44 loc) · 1002 Bytes
/
Copy pathreplay.h
File metadata and controls
executable file
·55 lines (44 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/******************************************************************************
*
* File: replay.h
* Language: C
* AUTHOR: J. Baxter
* E-Mail: jbaxter@gmail.com
* https://github.com/wsheppard/ecd2012
*
*
* Description:
* Declarations for replay module.
*
*
*******************************************************************************/
#ifndef REPLAY_H
#define REPLAY_H
#define NUM_REPLAY_SLOTS 10
#define NUM_REPLAY_STEPS 1000
#include "ik.h"
enum {
REPLAY_END,
REPLAY_BUTTON_DOWN,
REPLAY_BUTTON_UP,
REPLAY_WP,
REPLAY_RT,
};
enum {
REPLAY_STOP_PLAY,
REPLAY_START_PLAY,
REPLAY_STOP_RECORD,
REPLAY_START_RECORD,
REPLAY_START_RECORD_WP,
REPLAY_RECORD,
REPLAY_ARRAY_OUT_OF_BOUNDS,
};
#define STOP_POLL_DELAY 50
typedef struct replay_storage_ss{
unsigned int rValue;
portTickType delayTime;
unsigned int state;
ik_cart_pos_s ik_position;
}replay_storage_s;
int replay_init(xQueueHandle,xQueueHandle,xQueueHandle);
#endif