OV with External Autopilot
-
Hi! I'm trying to use
voxl-vision-hub
to send voxl-open-vins position data to an external autopilot (ardupilot). I start by making sure the following services are running:- voxl-imu-server
- voxl-open-vins-server
- voxl-camera-server
- voxl-vision-hub
- voxl-mavlink-server
I can confirm that the voxl and external autopilot are connected because I see this on Mission Planner MAVLink Inspector:
and the debug output I see after running
voxl-vision-hub -d
is:voxl2-mini:~$ voxl-vision-hub -d Enabling recv debugging for localhost UDP port from ROS loading our own config file ================================================================= Parameters as loaded from config file: config_file_version: 1 MAVROS / MAVSDK en_localhost_mavlink_udp 1 localhost_udp_port_number: 14551 VIO en_vio: 1 vio_pipe: ov secondary_vio_pipe: qvio en_reset_vio_if_initialized_inverted: 0 vio_warmup_s: 0.000000 send_odom_while_failed: 1 MISC FEATURES horizon_cal_tolerance: 0.500000 en_hitl: 0 OFFBOARD MODE offboard_mode: off follow_tag_id: 0 figure_eight_move_home: 1 wps_move_home: 1 wps_timeout: 0.000000 wps_damp: 1.000000 robot_radius: 0.300000 collision_sampling_dt: 0.100000 max_lookahead_distance: 1.000000 backtrack_seconds : 60 backtrack_rc_chan : 8 backtrack_rc_thresh : 1500 FIXED FRAME RELOCALIZATION en_tag_fixed_frame: 0 fixed_frame_filter_len: 5 en_transform_mavlink_pos_setpoints_from_fixed_frame:0 VOXL FLIGHT CONTROLLER (VFC) vfc_rate 100.000000 vfc_rc_chan_min 980 vfc_rc_chan_max 2020 vfc_thrust_ch 3 vfc_roll_ch 1 vfc_pitch_ch 2 vfc_yaw_ch 4 vfc_submode_ch 6 vfc_alt_mode_rc_min 0 vfc_alt_mode_rc_max 0 vfc_flow_mode_rc_min 0 vfc_flow_mode_rc_max 0 vfc_hybrid_flow_mode_rc_min 0 vfc_hybrid_flow_mode_rc_max 0 vfc_position_mode_rc_min 0 vfc_position_mode_rc_max 2100 vfc_traj_mode_rc_min 0 vfc_traj_mode_rc_max 0 vfc_yaw_deadband 30 vfc_vxy_deadband 50 vfc_vz_deadband 150 vfc_min_thrust 0.000000 vfc_max_thrust 0.800000 vfc_tilt_max 0.436000 vfc_yaw_rate_max 3.000000 vfc_thrust_hover 0.500000 vfc_vz_max 1.000000 vfc_kp_z 5.290000 vfc_kd_z 5.980000 vfc_vxy_max 3.000000 vfc_kp_xy 0.640000 vfc_kd_xy 2.560000 vfc_kp_z_vio 5.290000 vfc_kd_z_vio 5.980000 vfc_kp_xy_vio 3.240000 vfc_kd_xy_vio 3.960000 vfc_w_filt_xy_vio 10.000000 vfc_vel_ff_factor_vio 0.900000 vfc_xy_acc_limit_vio 2.500000 vfc_max_z_delta 3.000000 vfc_att_transition_time 0.500000 vfc_stick_move_threshold 30.000000 vfc_flow_transition_time 1.000000 vfc_q_min 10 vfc_points_min 7 vfc_en_submode_announcement 1 vfc_disable_fallback 0 COLLISION PREVENTION (VOA) en_voa: 0 voa_upper_bound_m: -0.150000 voa_lower_bound_m: 0.150000 voa_memory_s: 1.000000 voa_max_pc_per_fusion: 100 voa_pie_min_dist_m: 0.250000 voa_pie_max_dist_m: 20.000000 voa_pie_under_trim_m: 1.000000 voa_pie_threshold: 3 voa_pie_slices: 36 voa_pie_bin_depth_m: 0.150000 voa_send_rate_hz: 20.000000 voa_input #0 enabled: 0 type: point_cloud input_pipe: dfs_point_cloud frame: stereo_l max_depth: 8.000000 min_depth: 0.300000 cell_size: 0.080000 threshold: 4 x_fov_deg: 68.000000 y_fov_deg: 56.000000 conf_cutoff: 0 voa_input #1 enabled: 0 type: point_cloud input_pipe: stereo_front_pc frame: stereo_front_l max_depth: 8.000000 min_depth: 0.300000 cell_size: 0.080000 threshold: 4 x_fov_deg: 68.000000 y_fov_deg: 56.000000 conf_cutoff: 0 voa_input #2 enabled: 0 type: point_cloud input_pipe: stereo_rear_pc frame: stereo_rear_l max_depth: 8.000000 min_depth: 0.300000 cell_size: 0.080000 threshold: 4 x_fov_deg: 68.000000 y_fov_deg: 56.000000 conf_cutoff: 0 voa_input #3 enabled: 0 type: tof input_pipe: tof frame: tof max_depth: 6.000000 min_depth: 0.150000 cell_size: 0.080000 threshold: 3 x_fov_deg: 106.500000 y_fov_deg: 85.099998 conf_cutoff: 125 voa_input #4 enabled: 0 type: rangefinder input_pipe: rangefinders frame: body max_depth: 8.000000 min_depth: 0.300000 cell_size: 0.080000 threshold: 4 x_fov_deg: 68.000000 y_fov_deg: 56.000000 conf_cutoff: 0 ================================================================= loading extrinsics config file loading horizon cal file starting geometry module starting autopilot monitor starting mavlink IO Waiting to connect to voxl-mavlink-server Connected to voxl-mavlink-server starting mavlink for ros starting fixed pose input starting vio manager Connected to VIO pipe: ov Geometry module updating to use imu: imu_apps for VIO new T imu wrt body: 0.0407 -0.0060 -0.0188 new R imu to body: 1.0000 -0.0000 0.0000 0.0000 1.0000 -0.0000 0.0000 0.0000 1.0000 done updating transforms to use imu: imu_apps starting tag manager starting horizon cal module starting imu manager starting state manager Init complete from AP msgid: 0 sysid: 1 compid: 1 Detected Autopilot Mavlink SYSID 1 requesting autopilot_version from AP msgid: 0 sysid: 1 compid: 1 requesting autopilot_version from AP msgid: 77 sysid: 1 compid: 1 from AP msgid: 77 sysid: 1 compid: 1 from AP msgid: 148 sysid: 1 compid: 1 Detected autopilot version: 4.5.5 from AP msgid: 0 sysid: 1 compid: 1 from AP msgid: 0 sysid: 1 compid: 1 from AP msgid: 22 sysid: 1 compid: 1
It seems like other than the heartbeat, no data is being sent to the external autopilot. Thanks in advance for any guidance that can help me sort this out!
-
@SKA I would review this page if you haven't already: https://docs.modalai.com/voxl2-external-flight-controller/
-
@tom Thanks! I referred to this page in order to set up what I have right now.
My voxl 2 mini is connected to the external autopilot using the one exposed UART. It seems to be connected fine, since I'm receiving the voxl heartbeat on the autopilot end, and I'm receiving autopilot mavlink messages on the voxl side.I wonder if there is anything I might be missing on the voxl-vision-hub side, or elsewhere.
Thanks for your help!