File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
examples/micro-ros_publisher Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,13 @@ rcl_timer_t timer;
19
19
#define LED_PIN 13
20
20
21
21
#define RCCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){error_loop ();}}
22
- #define RCSOFTCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){error_loop (); }}
22
+ #define RCSOFTCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){}}
23
23
24
24
25
25
void error_loop (){
26
26
while (1 ){
27
- // digitalWrite(LED_PIN, !digitalRead(LED_PIN));
28
- delay (300 );
29
- SerialUSB.println (" Error" );
27
+ digitalWrite (LED_PIN, !digitalRead (LED_PIN));
28
+ delay (100 );
30
29
}
31
30
}
32
31
@@ -83,5 +82,5 @@ void setup() {
83
82
}
84
83
85
84
void loop () {
86
- RCCHECK (rclc_executor_spin_some (&executor, RCL_MS_TO_NS (100 )));
85
+ RCSOFTCHECK (rclc_executor_spin_some (&executor, RCL_MS_TO_NS (100 )));
87
86
}
Original file line number Diff line number Diff line change 33
33
" -DUCLIENT_PROFILE_UDP=OFF" ,
34
34
" -DUCLIENT_PROFILE_DISCOVERY=OFF" ,
35
35
" -DUCLIENT_PROFILE_SERIAL=ON" ,
36
- " -DUCLIENT_EXTERNAL_SERIAL=ON" ,
37
- " -DUCLIENT_SERIAL_TRANSPORT_MTU=128"
36
+ " -DUCLIENT_EXTERNAL_SERIAL=ON"
38
37
]
39
38
},
40
39
" rmw_microxrcedds " : {
You can’t perform that action at this time.
0 commit comments