Skip to content

Commit

Permalink
Add stop for lidar python
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Dec 9, 2023
1 parent fa4f7b3 commit ec22c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/RPLidar/test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ void run_python() {
auto health = lidar.attr("get_health")();
py::print(health);

lidar.attr("stop")();
lidar.attr("stop_motor")();
lidar.attr("disconnect")();
}

int main()
Expand Down

0 comments on commit ec22c19

Please sign in to comment.