File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
pio_workspace/lib/power_custom Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
#include " power_micro_ros.h"
2
2
3
+ rcl_subscription_t propulsion_microseconds_subscriber;
4
+ std_msgs__msg__Int16MultiArray propulsion_microseconds_msg;
5
+ rclc_executor_t executor;
6
+ rclc_support_t support;
7
+ rcl_allocator_t allocator;
8
+ rcl_node_t node;
9
+ rcl_timer_t timer;
10
+
3
11
void micro_ros_init () {
4
12
set_microros_transports ();
5
13
Original file line number Diff line number Diff line change 11
11
12
12
#define LED_PIN 13
13
13
14
- rcl_subscription_t propulsion_microseconds_subscriber ;
15
- std_msgs__msg__Int16MultiArray propulsion_microseconds_msg ;
16
- rclc_executor_t executor ;
17
- rclc_support_t support ;
18
- rcl_allocator_t allocator ;
19
- rcl_node_t node ;
20
- rcl_timer_t timer ;
14
+ extern rcl_subscription_t propulsion_microseconds_subscriber ;
15
+ extern std_msgs__msg__Int16MultiArray propulsion_microseconds_msg ;
16
+ extern rclc_executor_t executor ;
17
+ extern rclc_support_t support ;
18
+ extern rcl_allocator_t allocator ;
19
+ extern rcl_node_t node ;
20
+ extern rcl_timer_t timer ;
21
21
22
22
#define RCCHECK (fn ) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){error_loop();}}
23
23
#define RCSOFTCHECK (fn ) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){}}
You can’t perform that action at this time.
0 commit comments