micro-ros IMU ML 代码rclc_support_init(&support, 0, NULL, &allocator));
// create node
RCCHECK(rclc_node_init_default(&node, "IMU_node std_msgs, msg, String),
&string_msg,
(micro_ros_utilities_memory_conf_t) {}
);
// Init IMU pinMode(INT_IMU, INPUT);
attachInterrupt(INT_IMU, INT1Event_cb, RISING);
}
void INT1Event_cb() { zhangrelay
2023-08-09
1.2K0
