How to control servo in Pixhawk4 using odroid
I have one project which wants me to move the servo by using MAVROS. The servo must be connected to pixhawk. Now I connect the servo to the pixhawk but I am not sure how to move the servo in any degrees. Please kindly teach me how to do it. I am still new to odroid and pixhawk.
Asked by HENRY6 on 2019-12-10 18:31:53 UTC
Answers
you can use mavros to connect pixhawk to odroid. then by using mavros_msgs/OverrideRCIn topic you can control the pwm output (first yo need to done some setting in your px4)
Asked by Hamid Didari on 2019-12-11 00:25:02 UTC
Comments
What is the command to run the mavros_msgs/OverrideRCIn topic? And, how do I do setting in my pixhawk?
Asked by HENRY6 on 2019-12-12 16:17:56 UTC
read this tutorial
Asked by Hamid Didari on 2019-12-14 23:50:23 UTC
I ran roslaunch mavros px4.launch, then rostopic pub -1 /mavros/rc/override mavros/OverrideRCIn '[1500, 1500, 1500, 1500, 1325, 1560, 2000, 1500]'. It showed nothing. From other website, they mentioned to set the SYSID_MYGCS to 1. I followed what they mentioned but it is still the same.
Asked by HENRY6 on 2019-12-15 00:21:38 UTC
did mavros connect to pixhawk correctly? try to subscribe imu topic and check mavras that connected correctly.
Asked by Hamid Didari on 2019-12-17 00:27:28 UTC
I'm sorry for the late reply. I could subscribe imu topic.
Asked by HENRY6 on 2020-01-21 18:19:32 UTC
Comments