Open alexisutc opened 5 years ago
You need to send setpoints within the timeout to enter offboard mode. Please refer to this document.
ArduPilot do not have OFFBOARD mode, it has GUIDED.
thx for the answer.
Eventually i only want to control manually my PWM's, so i thougth that using actuator_control could solve my problem. Can guided-mode allow me to use the actuator_control node ?
Initially it was PX4-only feature, but i don't know current state of APM.
If you only want to control some servo channel, you can use command plugin to send SET_SERVO cmds.
how can i know if i'm using p4x or apm ?
If you only want to control some servo channel, you can use command plugin to send SET_SERVO cmds.
how ?
@alexisutc It is written on your log
level: 0
name: "mavros: Heartbeat"
message: "Normal"
hardware_id: "udp://:14650@"
values:
-
key: "Heartbeats since startup"
value: "1867"
-
key: "Frequency (Hz)"
value: "0.963034"
-
key: "Vehicle type"
value: "Fixed wing aircraft"
-
key: "Autopilot type"
value: "ArduPilot - Plane/Copter/Rover/Sub/Tracker"
-
key: "Mode"
value: "RTL"
-
key: "System status"
value: "Critical"
Ok thanks
since I use the APM with arduplane i will forget about the offboard mode and focus on the plugin you told me about.
Hi again,
after some researches i figured folowing out : you say to use SET_SERVO via mavlink. I can't figured how to write on the node. I guess it should looks like :
rostopic pub /mavlink/to mavros_msgs/Mavlink "header: seq: 0 stamp: {secs: 0, nsecs: 0} frame_id: '' framing_status: 0 magic: 0 len: 2 incompat_flags: 0 compat_flags: 0 seq: 0 sysid: 1 compid: 250 msgid: 183 checksum: 0 payload64: [0] signature: ''"
On the other hand I can write on the overrideRCIN working just fine but with a latency of 2 seconds ! Any idear why ?
I said to use command plugin, not trying to interact with /mavlink topics.
rosrun mavcmd long 183 1 1500 0 0 0 0 0
https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_SERVO
hello vooon
thx but mavcmd doesnt exist, how to install ?
[rospack] Error: package 'mavcmd' not found
Also I just would like to have a node on which i publish a pwm and that applies it on the corresponding PWM bus.
Its actually
rosrun mavros mavcmd
Hello world,
i'm new with ros and mavros. This is my config :
so i put here my log. Can you please help me on that ?
thancks beforehand.
MAVROS version and platform
Mavros: ?0.18.4? ROS: Kinetic Rasbian
Autopilot type and version
[ ] ArduPilot [ ] PX4
Version: ?3.7.1?
Node logs
/diagnostics /mavlink/from /mavlink/to /mavros/actuator_control /mavros/altitude /mavros/battery /mavros/extended_state /mavros/global_position/compass_hdg /mavros/global_position/global /mavros/global_position/gp_lp_offset /mavros/global_position/gp_origin /mavros/global_position/home /mavros/global_position/local /mavros/global_position/raw/fix /mavros/global_position/raw/gps_vel /mavros/global_position/rel_alt /mavros/global_position/set_gp_origin /mavros/hil/actuator_controls /mavros/hil/controls /mavros/hil/gps /mavros/hil/imu_ned /mavros/hil/optical_flow /mavros/hil/rc_inputs /mavros/hil/state /mavros/home_position/home /mavros/home_position/set /mavros/imu/data /mavros/imu/data_raw /mavros/imu/diff_pressure /mavros/imu/mag /mavros/imu/static_pressure /mavros/imu/temperature_baro /mavros/imu/temperature_imu /mavros/local_position/accel /mavros/local_position/odom /mavros/local_position/pose /mavros/local_position/pose_cov /mavros/local_position/velocity /mavros/local_position/velocity_cov /mavros/manual_control/control /mavros/manual_control/send /mavros/mission/reached /mavros/mission/waypoints /mavros/param/param_value /mavros/radio_status /mavros/rc/in /mavros/rc/out /mavros/rc/override /mavros/setpoint_accel/accel /mavros/setpoint_attitude/cmd_vel /mavros/setpoint_attitude/thrust /mavros/setpoint_position/global /mavros/setpoint_position/local /mavros/setpoint_raw/attitude /mavros/setpoint_raw/global /mavros/setpoint_raw/local /mavros/setpoint_raw/target_attitude /mavros/setpoint_raw/target_global /mavros/setpoint_raw/target_local /mavros/setpoint_velocity/cmd_vel /mavros/setpoint_velocity/cmd_vel_unstamped /mavros/state /mavros/statustext/recv /mavros/statustext/send /mavros/target_actuator_control /mavros/time_reference /mavros/timesync_status /mavros/vfr_hud /mavros/wind_estimation /rosout /rosout_agg /tf /tf_static
Diagnostics
Check ID