-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CON: Got HEARTBEAT, connected. FCU: No valid autopilot #1221
Comments
I updated Ardupilot from 3.5.3 to 3.7.0. Still the same issue.. |
You use same port for bind and remote, mavros simply got it's own heartbeats. See "Vehicle type". |
Okay, it was indeed a port problem. Thank you very much. |
Some other computer sending the data to port that mavros binds to. Because UDP is connectless, libmavconn uses address of the last packet to talk back. Try to use other port, e.g |
if I use 14540 it's not connecting to fcu. |
Because you should first configure your AP to use another port. |
I've fixed this by changing the IP to localhost ip: 127.0.0.1. |
That is really depends on flight firmware you are using. E.g. as i remember, APM may be tuned by command line args. |
I don't know about APM but you can change the port inside the Mavlink-router conf file. [ INFO] [1557198201.889025826]: MAVROS started. MY ID 1.240, TARGET ID 25.1 CheckId returns : |
I've fixed it. |
Issue details
Hi guys,
I'm trying to launch Mavros on my drone (Intel Aero) with the command
roslaunch mavros apm.launch fcu_url:="udp://:14555@127.0.0.1:14555"
But I have this weird issue "Got HEARTBEAT, connected. FCU: No valid autopilot" and also "ERROR: I got 1 addresses, but not your target1:1" (when I launch rosrun mavros checkid).
I search through the web the whole day, and apparently, the issue is coming from the system_id and component_id not being set correctly.
The problem is that I checked these values on QGroundControl and they are 1/1. These values are by default 1/1 in the apm.launch file.
If someone can point me in the right direction I'll be happy.
Thank you very much.
MAVROS version and platform
Mavros: not sure
ROS: Kinetic
Ubuntu: 16.04
Autopilot type and version
[ X] ArduPilot
[ ] PX4
Version: 3.5.3
Node logs
roslaunch mavros apm.launch fcu_url:="udp://:14555@127.0.0.1:14555"
... logging to /home/drone02/.ros/log/7960effa-3c78-11e9-9a16-4a65e9c04346/roslaunch-drone02-2604.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://drone02:36828/
SUMMARY
CLEAR PARAMETERS
PARAMETERS
NODES
/
mavros (mavros/mavros_node)
auto-starting new master
process[master]: started with pid [2616]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 7960effa-3c78-11e9-9a16-4a65e9c04346
process[rosout-1]: started with pid [2629]
started core service [/rosout]
process[mavros-2]: started with pid [2647]
[ INFO] [1551482376.701838248]: FCU URL: udp://:14555@127.0.0.1:14555
[ INFO] [1551482376.705323731]: udp0: Bind address: 0.0.0.0:14555
[ INFO] [1551482376.705451185]: udp0: Remote address: 127.0.0.1:14555
[ INFO] [1551482376.705662355]: GCS bridge disabled
[ INFO] [1551482376.768224077]: Plugin 3dr_radio loaded
[ INFO] [1551482376.775060575]: Plugin 3dr_radio initialized
[ INFO] [1551482376.775141690]: Plugin actuator_control blacklisted
[ INFO] [1551482376.790650697]: Plugin adsb loaded
[ INFO] [1551482376.804918612]: Plugin adsb initialized
[ INFO] [1551482376.804993640]: Plugin altitude blacklisted
[ INFO] [1551482376.805220110]: Plugin cam_imu_sync loaded
[ INFO] [1551482376.807699620]: Plugin cam_imu_sync initialized
[ INFO] [1551482376.807973755]: Plugin command loaded
[ INFO] [1551482376.829497456]: Plugin command initialized
[ INFO] [1551482376.829757840]: Plugin companion_process_status loaded
[ INFO] [1551482376.842151578]: Plugin companion_process_status initialized
[ INFO] [1551482376.842218918]: Plugin debug_value blacklisted
[ INFO] [1551482376.842413637]: Plugin distance_sensor loaded
[ INFO] [1551482376.879883386]: Plugin distance_sensor initialized
[ INFO] [1551482376.880141682]: Plugin fake_gps loaded
[ INFO] [1551482376.940693936]: Plugin fake_gps initialized
[ INFO] [1551482376.940769676]: Plugin ftp blacklisted
[ INFO] [1551482376.941035260]: Plugin global_position loaded
[ INFO] [1551482377.007505167]: Plugin global_position initialized
[ INFO] [1551482377.007775289]: Plugin gps_rtk loaded
[ INFO] [1551482377.017507786]: Plugin gps_rtk initialized
[ INFO] [1551482377.017580426]: Plugin hil blacklisted
[ INFO] [1551482377.017829022]: Plugin home_position loaded
[ INFO] [1551482377.033057482]: Plugin home_position initialized
[ INFO] [1551482377.033328229]: Plugin imu loaded
[ INFO] [1551482377.063436737]: Plugin imu initialized
[ INFO] [1551482377.063729835]: Plugin local_position loaded
[ INFO] [1551482377.091086712]: Plugin local_position initialized
[ INFO] [1551482377.091321395]: Plugin log_transfer loaded
[ INFO] [1551482377.102385975]: Plugin log_transfer initialized
[ INFO] [1551482377.102689310]: Plugin manual_control loaded
[ INFO] [1551482377.114748674]: Plugin manual_control initialized
[ INFO] [1551482377.114994082]: Plugin mocap_pose_estimate loaded
[ INFO] [1551482377.133563745]: Plugin mocap_pose_estimate initialized
[ INFO] [1551482377.133828679]: Plugin obstacle_distance loaded
[ INFO] [1551482377.143693005]: Plugin obstacle_distance initialized
[ INFO] [1551482377.143946039]: Plugin odom loaded
[ INFO] [1551482377.168102806]: Plugin odom initialized
[ INFO] [1551482377.168377340]: Plugin param loaded
[ INFO] [1551482377.178899176]: Plugin param initialized
[ INFO] [1551482377.178978779]: Plugin px4flow blacklisted
[ INFO] [1551482377.179201199]: Plugin rangefinder loaded
[ INFO] [1551482377.181607332]: Plugin rangefinder initialized
[ INFO] [1551482377.181889579]: Plugin rc_io loaded
[ INFO] [1551482377.195931961]: Plugin rc_io initialized
[ INFO] [1551482377.196009039]: Plugin safety_area blacklisted
[ INFO] [1551482377.196251610]: Plugin setpoint_accel loaded
[ INFO] [1551482377.210391283]: Plugin setpoint_accel initialized
[ INFO] [1551482377.210690868]: Plugin setpoint_attitude loaded
[ INFO] [1551482377.260828964]: Plugin setpoint_attitude initialized
[ INFO] [1551482377.261121437]: Plugin setpoint_position loaded
[ INFO] [1551482377.323300171]: Plugin setpoint_position initialized
[ INFO] [1551482377.323593319]: Plugin setpoint_raw loaded
[ INFO] [1551482377.362717362]: Plugin setpoint_raw initialized
[ INFO] [1551482377.362986896]: Plugin setpoint_velocity loaded
[ INFO] [1551482377.388324866]: Plugin setpoint_velocity initialized
[ INFO] [1551482377.388705742]: Plugin sys_status loaded
[ INFO] [1551482377.428479595]: Plugin sys_status initialized
[ INFO] [1551482377.428780555]: Plugin sys_time loaded
[ INFO] [1551482377.455796645]: TM: Timesync mode: MAVLINK
[ INFO] [1551482377.460412679]: Plugin sys_time initialized
[ INFO] [1551482377.460742215]: Plugin trajectory loaded
[ INFO] [1551482377.483183098]: Plugin trajectory initialized
[ INFO] [1551482377.483463332]: Plugin vfr_hud loaded
[ INFO] [1551482377.485900491]: Plugin vfr_hud initialized
[ INFO] [1551482377.485988182]: Plugin vibration blacklisted
[ INFO] [1551482377.486200314]: Plugin vision_pose_estimate loaded
[ INFO] [1551482377.520402613]: Plugin vision_pose_estimate initialized
[ INFO] [1551482377.520491204]: Plugin vision_speed_estimate blacklisted
[ INFO] [1551482377.520787426]: Plugin waypoint loaded
[ INFO] [1551482377.537164476]: Plugin waypoint initialized
[ INFO] [1551482377.537454036]: Plugin wind_estimation loaded
[ INFO] [1551482377.539735302]: Plugin wind_estimation initialized
[ INFO] [1551482377.539851868]: Built-in SIMD instructions: SSE, SSE2
[ INFO] [1551482377.539948472]: Built-in MAVLink package version: 2019.1.12
[ INFO] [1551482377.540003499]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad icarous matrixpilot paparazzi slugs standard uAvionix ualberta
[ INFO] [1551482377.540080926]: MAVROS started. MY ID 1.240, TARGET ID 1.1
[ INFO] [1551482377.561688780]: udp0: Remote address: 127.0.0.1:14555
[ INFO] [1551482378.404138565]: CON: Got HEARTBEAT, connected. FCU: No valid autopilot
[ WARN] [1551482380.417298167]: VER: broadcast request timeout, retries left 4
[ WARN] [1551482381.417578607]: VER: broadcast request timeout, retries left 3
[ WARN] [1551482382.416448587]: VER: unicast request timeout, retries left 2
[ WARN] [1551482383.412776267]: VER: unicast request timeout, retries left 1
[ WARN] [1551482384.411987309]: VER: unicast request timeout, retries left 0
[ WARN] [1551482385.415885674]: VER: your FCU don't support AUTOPILOT_VERSION, switched to default capabilities
[ INFO] [1551482388.405383894]: HP: requesting home position
[ WARN] [1551482389.406026347]: PR: request list timeout, retries left 2
[ WARN] [1551482390.408089374]: PR: request list timeout, retries left 1
[ WARN] [1551482391.408833231]: PR: request list timeout, retries left 0
[ WARN] [1551482394.406339938]: WP: timeout, retries left 2
[ WARN] [1551482395.408184658]: WP: timeout, retries left 1
[ WARN] [1551482396.410201446]: WP: timeout, retries left 0
[ERROR] [1551482397.411908885]: WP: timed out.
[ INFO] [1551482398.405388168]: HP: requesting home position
[ INFO] [1551482408.405502795]: HP: requesting home position
Diagnostics
header:
seq: 56
stamp:
secs: 1551482444
nsecs: 41031127
frame_id: ''
status:
level: 2
name: "mavros: GPS"
message: "No satellites"
hardware_id: "udp://:14555@127.0.0.1:14555"
values:
value: "0"
value: "Unknown"
value: "Unknown"
level: 0
name: "mavros: Heartbeat"
message: "Normal"
hardware_id: "udp://:14555@127.0.0.1:14555"
values:
value: "0.963059"
value: "Onboard companion controller"
value: "No valid autopilot"
value: "MODE(0xC0)"
value: "Active"
level: 0
name: "mavros: System"
message: "Normal"
hardware_id: "udp://:14555@127.0.0.1:14555"
values:
value: "0x00000000"
value: "0x00000000"
value: "0.0"
value: "0.0"
value: "0"
value: "0"
value: "0"
value: "0"
value: "0"
level: 2
name: "mavros: Battery"
message: "No data"
hardware_id: "udp://:14555@127.0.0.1:14555"
values:
value: "0.0"
value: "0.0"
level: 0
name: "mavros: Time Sync"
message: "Normal"
hardware_id: "udp://:14555@127.0.0.1:14555"
values:
value: "10.001075"
value: "0.503029"
value: "0.661527"
value: "1551482443.961940765"
value: "9223372036.854604721"
Check ID
ERROR. I got 1 addresses, but not your target 1:1
Received 332 messages, from 1 addresses
sys:comp list of messages
1:240 0, 2, 76, 111
The text was updated successfully, but these errors were encountered: