ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to control servo in Pixhawk4 using odroid

asked 2019-12-10 17:31:53 -0500

HENRY6 gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-10 23:25:02 -0500

Hamid Didari gravatar image

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)

edit flag offensive delete link more

Comments

What is the command to run the mavros_msgs/OverrideRCIn topic? And, how do I do setting in my pixhawk?

HENRY6 gravatar image HENRY6  ( 2019-12-12 15:17:56 -0500 )edit

read this tutorial

Hamid Didari gravatar image Hamid Didari  ( 2019-12-14 22:50:23 -0500 )edit

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.

HENRY6 gravatar image HENRY6  ( 2019-12-14 23:21:38 -0500 )edit

did mavros connect to pixhawk correctly? try to subscribe imu topic and check mavras that connected correctly.

Hamid Didari gravatar image Hamid Didari  ( 2019-12-16 23:27:28 -0500 )edit

I'm sorry for the late reply. I could subscribe imu topic.

HENRY6 gravatar image HENRY6  ( 2020-01-21 17:19:32 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-12-10 17:31:53 -0500

Seen: 598 times

Last updated: Dec 10 '19