File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
examples/Braccio_LearnByDoing Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * @brief Learn the arm an movement and replay it.
3
+ */
4
+
5
+ /* *************************************************************************************
6
+ * INCLUDE
7
+ **************************************************************************************/
8
+
1
9
#include < Braccio++.h>
2
10
#include " FlashIAPBlockDevice.h"
3
11
#include " FATFileSystem.h"
4
12
13
+ /* *************************************************************************************
14
+ * VARIABLES
15
+ **************************************************************************************/
16
+
5
17
enum states {
6
18
LEARN,
7
19
REPEAT,
@@ -14,6 +26,10 @@ float values[10000];
14
26
float * idx = values;
15
27
float * final_idx = 0 ;
16
28
29
+ /* *************************************************************************************
30
+ * FUNCTIONS
31
+ **************************************************************************************/
32
+
17
33
static void event_handler (lv_event_t * e) {
18
34
lv_event_code_t code = lv_event_get_code (e);
19
35
lv_obj_t * obj = lv_event_get_target (e);
@@ -95,9 +111,14 @@ void customMenu() {
95
111
static FlashIAPBlockDevice bd (XIP_BASE + 0x100000 , 0x100000 );
96
112
static mbed::FATFileSystem fs (" fs" );
97
113
98
- void setup () {
114
+ /* *************************************************************************************
115
+ * SETUP/LOOP
116
+ **************************************************************************************/
99
117
118
+ void setup ()
119
+ {
100
120
Serial.begin (115200 );
121
+ while (!Serial) { }
101
122
102
123
// Mount file system for load/store movements
103
124
int err = fs.mount (&bd);
You can’t perform that action at this time.
0 commit comments