19
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
*/
21
21
22
- // -----------------------------------------------------------------------------
23
- // ~autogen autogen-header
24
-
25
- // Sections of the following code were auto-generated based on spec v1.2.0.
26
-
27
- // ~autogen
28
- // -----------------------------------------------------------------------------
29
-
30
22
#include " ev3dev.h"
31
23
32
24
#include < iostream>
@@ -53,8 +45,6 @@ void test_sensor(const char *name)
53
45
cout << endl
54
46
<< " Found " << name << " sensor" << endl
55
47
<< " Current properties are:" << endl;
56
- // ~autogen generic_report_status classes.sensor>currentClass
57
-
58
48
cout << " Address: " ;
59
49
try { cout << dev.address () << endl; }
60
50
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
@@ -79,9 +69,6 @@ void test_sensor(const char *name)
79
69
cout << " Units: " ;
80
70
try { cout << dev.units () << endl; }
81
71
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
82
-
83
-
84
- // ~autogen
85
72
cout << endl;
86
73
}
87
74
else
@@ -97,8 +84,6 @@ void test_motor(const char *name)
97
84
cout << endl
98
85
<< " Found " << name << " motor" << endl
99
86
<< " Current properties are:" << endl;
100
- // ~autogen generic_report_status classes.motor>currentClass
101
-
102
87
cout << " Address: " ;
103
88
try { cout << dev.address () << endl; }
104
89
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
@@ -177,9 +162,6 @@ void test_motor(const char *name)
177
162
cout << " Time SP: " ;
178
163
try { cout << dev.time_sp () << endl; }
179
164
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
180
-
181
-
182
- // ~autogen
183
165
cout << endl;
184
166
}
185
167
else
@@ -194,8 +176,6 @@ void test_dc_motor()
194
176
cout << endl
195
177
<< " Found dc motor" << endl
196
178
<< " Current properties are:" << endl;
197
- // ~autogen generic_report_status classes.dcMotor>currentClass
198
-
199
179
cout << " Address: " ;
200
180
try { cout << dev.address () << endl; }
201
181
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
@@ -229,9 +209,6 @@ void test_dc_motor()
229
209
cout << " Time SP: " ;
230
210
try { cout << dev.time_sp () << endl; }
231
211
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
232
-
233
-
234
- // ~autogen
235
212
cout << endl;
236
213
}
237
214
else
@@ -246,8 +223,6 @@ void test_servo_motor()
246
223
cout << endl
247
224
<< " Found servo motor" << endl
248
225
<< " Current properties are:" << endl;
249
- // ~autogen generic_report_status classes.servoMotor>currentClass
250
-
251
226
cout << " Address: " ;
252
227
try { cout << dev.address () << endl; }
253
228
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
@@ -275,9 +250,6 @@ void test_servo_motor()
275
250
cout << " State: " ;
276
251
try { cout << dev.state () << endl; }
277
252
catch (...) { cout << " [" << strerror (errno) << " ]" << endl; }
278
-
279
-
280
- // ~autogen
281
253
cout << endl;
282
254
}
283
255
else
0 commit comments