How to run a servo using a pixhawk through MAVROS Offboard mode?
Hi,
I am using the a pixhawk connected to the odroid for a quadcopter. I am detecting the obstacles using a LIDAR. I am attaching the lidar to a servo so that I can do a lidar sweep.I am running the pixhawk in offboard mode and trying to control the servo motor through the auxiliary ports (AUX). We found a way in this link below.
https://groups.google.com/forum/m/#!topic/px4users/DGp1BZYBQgI
But the problem is that there is a problem in using nutshell with the pixhawk, Everytime I use the command below, I get either gibberish or a line saying that [Screen Is Terminating].
screen /dev/ttyACM0 BAUD_RATE 8N1
I have tried different baud rates like 57600 115200 921600 9600. None of them seem to work.
Kindly let me know if you a solution for this or if there is an alternative to controlling the servo using pixhawk.
Thanks, Vivek
Asked by Vivek on 2016-04-27 16:19:40 UTC
Answers
Hi, Did you find the solution?
Asked by roberto colella on 2016-11-05 06:13:44 UTC
Comments
Hey ! Just something which may help. Don't have experience with Mavros so this is not the ROS way of doing it.
1) ( http://pleasingsoftware.blogspot.in/2014/05/day-four-bombs-away.html ) 2) Official Arducopter Doc, needs Mission Planner
Asked by aaditya_saraiya on 2017-11-30 11:57:59 UTC
Here I have a code for servo_controller which may help. You may add comments for further doubts. Here I've used urdf files for convience, but sdf files can also be integrated. There is also a ros package which controls the servo which will aid you further https://github.com/Gauraviitkgp/Servo-Contro
Asked by Gaurav Suryawanshi on 2018-06-02 03:37:56 UTC
Comments
Here I have a code for servo_controller which may help. You may add comments for further doubts. Here I've used urdf files for convience, but sdf files can also be integrated. There is also a ros package which controls the servo which will aid you further https://github.com/Gauraviitkgp/Servo-Contro
Asked by Gaurav Suryawanshi on 2018-06-02 03:38:16 UTC