mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
880 stars 990 forks source link

MAVROS-APM2.6 : mavsafety arming issue #1590

Open elonv opened 3 years ago

elonv commented 3 years ago

@vooon @TSC21 Hello.I have been receiving error "REQUEST FAILED CHECK MAVROS LOGS" while running command "rosrun mavros mavsafety arm". I am using apm 2.6 as flight control unit and usb cable (serial 0) to connect raspberry pi with apm 2.6(dev/ttyACM0). The roslaunch command (roslaunch mavros apm.launch) works fine and shows everything fine in diagnostics, service for setting the STABILIZE (rosrun mavros mavsys mode -c STABILIZE) mode also works well but only STABILIZE mode could be set using other modes such as LAND shows timed out error. I have tried every possible solution : trying it on different single board computers raspberry pi, UPBOARD, trying different versions of mavros by building it from source. Flashing apm2.6 firmware with different baud rates.And what i observed from experimenting with apm flashing is that changes that are applied to apm before flashing does not get imposed on mavros.This problem is related to mavros it has nothing to do anything with what values and prearm checks are enabled at APM firmware. I am able to arm the apm2.6 with TX RX but with mavros arming it shows error and does not arm. I think there might be some problem with tgt_system and tgt_component values which by default are set to 1. With these values only mavsys -c STABILIZE works and when i try different values of above two params then mavsys stabilize also begins to show error of request failed. Its been a long time working over this problem but could not find any solution.

MAVROS version and platform

Mavros: 1.6.0 ROS: Kinetic Ubuntu: ?16.04?

Autopilot type and version

ArduPilot - apm2.6

Version: ?3.7.1?

Node logs

started roslaunch server http://pi:36731/

SUMMARY

CLEAR PARAMETERS

PARAMETERS

NODES / mavros (mavros/mavros_node)

auto-starting new master process[master]: started with pid [1557] ROS_MASTER_URI=http://localhost:11311

setting /run_id to e69f5166-de73-11eb-a4f0-b827eb6f52f4 process[rosout-1]: started with pid [1570] started core service [/rosout] process[mavros-2]: started with pid [1574] [ INFO] [1625587501.350603783]: FCU URL: /dev/ttyACM0:115200 [ INFO] [1625587501.375025405]: serial0: device: /dev/ttyACM0 @ 115200 bps [ INFO] [1625587501.377495540]: GCS bridge disabled [ INFO] [1625587502.078683127]: Plugin 3dr_radio loaded [ INFO] [1625587502.091265454]: Plugin 3dr_radio initialized [ INFO] [1625587502.091446816]: Plugin actuator_control blacklisted [ INFO] [1625587502.497125379]: Plugin adsb loaded [ INFO] [1625587502.520613145]: Plugin adsb initialized [ INFO] [1625587502.520806953]: Plugin altitude blacklisted [ INFO] [1625587502.521788539]: Plugin cam_imu_sync loaded [ INFO] [1625587502.526736146]: Plugin cam_imu_sync initialized [ INFO] [1625587502.528089934]: Plugin command loaded [ INFO] [1625587502.603582072]: Plugin command initialized [ INFO] [1625587502.604762620]: Plugin companion_process_status loaded [ INFO] [1625587502.623459564]: Plugin companion_process_status initialized [ INFO] [1625587502.623714450]: Plugin debug_value blacklisted [ INFO] [1625587502.625010075]: Plugin distance_sensor loaded [ INFO] [1625587502.689306374]: Plugin distance_sensor initialized [ INFO] [1625587502.690468385]: Plugin esc_status loaded [ INFO] [1625587502.699670070]: Plugin esc_status initialized [ INFO] [1625587502.701016776]: Plugin fake_gps loaded [ INFO] [1625587502.848069917]: Plugin fake_gps initialized [ INFO] [1625587502.848242115]: Plugin ftp blacklisted [ INFO] [1625587502.849410374]: Plugin global_position loaded [ INFO] [1625587502.973347378]: Plugin global_position initialized [ INFO] [1625587502.974560783]: Plugin gps_rtk loaded [ INFO] [1625587502.998568684]: Plugin gps_rtk initialized [ INFO] [1625587502.999670189]: Plugin gps_status loaded [ INFO] [1625587503.017804816]: Plugin gps_status initialized [ INFO] [1625587503.017983679]: Plugin hil blacklisted [ INFO] [1625587503.019225097]: Plugin home_position loaded [ INFO] [1625587503.046853301]: Plugin home_position initialized [ INFO] [1625587503.048354969]: Plugin imu loaded [ INFO] [1625587503.106496151]: Plugin imu initialized [ INFO] [1625587503.107623430]: Plugin landing_target loaded [ INFO] [1625587503.217265682]: Plugin landing_target initialized [ INFO] [1625587503.218521055]: Plugin local_position loaded [ INFO] [1625587503.269530266]: Plugin local_position initialized [ INFO] [1625587503.270590738]: Plugin log_transfer loaded [ INFO] [1625587503.294499688]: Plugin log_transfer initialized [ INFO] [1625587503.295794687]: Plugin manual_control loaded [ INFO] [1625587503.318847282]: Plugin manual_control initialized [ INFO] [1625587503.319982059]: Plugin mocap_pose_estimate loaded [ INFO] [1625587503.349026589]: Plugin mocap_pose_estimate initialized [ INFO] [1625587503.350214322]: Plugin mount_control loaded [ INFO] [1625587503.378407391]: Plugin mount_control initialized [ INFO] [1625587503.379574764]: Plugin obstacle_distance loaded [ INFO] [1625587503.401982515]: Plugin obstacle_distance initialized [ INFO] [1625587503.403138017]: Plugin odom loaded [ INFO] [1625587503.432718146]: Plugin odom initialized [ INFO] [1625587503.433818764]: Plugin onboard_computer_status loaded [ INFO] [1625587503.452660035]: Plugin onboard_computer_status initialized [ INFO] [1625587503.454384618]: Plugin param loaded [ INFO] [1625587503.478517888]: Plugin param initialized [ INFO] [1625587503.479605750]: Plugin play_tune loaded [ INFO] [1625587503.505649496]: Plugin play_tune initialized [ INFO] [1625587503.505823204]: Plugin px4flow blacklisted [ INFO] [1625587503.506851652]: Plugin rangefinder loaded [ INFO] [1625587503.511833467]: Plugin rangefinder initialized [ INFO] [1625587503.513286292]: Plugin rc_io loaded [ INFO] [1625587503.540728397]: Plugin rc_io initialized [ INFO] [1625587503.540930640]: Plugin safety_area blacklisted [ INFO] [1625587503.542101086]: Plugin setpoint_accel loaded [ INFO] [1625587503.566746836]: Plugin setpoint_accel initialized [ INFO] [1625587503.568805088]: Plugin setpoint_attitude loaded [ INFO] [1625587503.653695469]: Plugin setpoint_attitude initialized [ INFO] [1625587503.654978180]: Plugin setpoint_position loaded [ INFO] [1625587503.772703995]: Plugin setpoint_position initialized [ INFO] [1625587503.774141355]: Plugin setpoint_raw loaded [ INFO] [1625587503.841298271]: Plugin setpoint_raw initialized [ INFO] [1625587503.842642112]: Plugin setpoint_trajectory loaded [ INFO] [1625587503.879750990]: Plugin setpoint_trajectory initialized [ INFO] [1625587503.881026775]: Plugin setpoint_velocity loaded [ INFO] [1625587503.924917449]: Plugin setpoint_velocity initialized [ INFO] [1625587503.927068960]: Plugin sys_status loaded [ INFO] [1625587504.010750311]: Plugin sys_status initialized [ INFO] [1625587504.012017712]: Plugin sys_time loaded [ INFO] [1625587504.056053110]: TM: Timesync mode: MAVLINK [ INFO] [1625587504.065092529]: Plugin sys_time initialized [ INFO] [1625587504.066203041]: Plugin trajectory loaded [ INFO] [1625587504.107489787]: Plugin trajectory initialized [ INFO] [1625587504.108746096]: Plugin vfr_hud loaded [ INFO] [1625587504.113463753]: Plugin vfr_hud initialized [ INFO] [1625587504.113777791]: Plugin vibration blacklisted [ INFO] [1625587504.114879555]: Plugin vision_pose_estimate loaded [ INFO] [1625587504.174512107]: Plugin vision_pose_estimate initialized [ INFO] [1625587504.174853013]: Plugin vision_speed_estimate blacklisted [ INFO] [1625587504.176105313]: Plugin waypoint loaded [ INFO] [1625587504.219181416]: Plugin waypoint initialized [ INFO] [1625587504.219500714]: Plugin wheel_odometry blacklisted [ INFO] [1625587504.220686468]: Plugin wind_estimation loaded [ INFO] [1625587504.226298438]: Plugin wind_estimation initialized [ INFO] [1625587504.226959632]: Built-in SIMD instructions: None [ INFO] [1625587504.227176454]: Built-in MAVLink package version: 2021.3.3 [ INFO] [1625587504.227343966]: Known MAVLink dialects: common ardupilotmega ASLUAV all autoquad icarous matrixpilot paparazzi standard uAvionix ualberta [ INFO] [1625587504.227479089]: MAVROS started. MY ID 1.240, TARGET ID 1.1 [ INFO] [1625587504.276143991]: CON: Got HEARTBEAT, connected. FCU: ArduPilot [ERROR] [1625587504.840538876]: FCU: barometer calibration complete [ERROR] [1625587504.848036847]: FCU: GROUND START [ INFO] [1625587506.034909254]: IMU: Raw IMU message used. [ WARN] [1625587506.051492760]: GP: No GPS fix [ WARN] [1625587506.083959889]: TM: Wrong FCU time. [ WARN] [1625587506.285558456]: VER: broadcast request timeout, retries left 4 [ WARN] [1625587507.282954195]: VER: broadcast request timeout, retries left 3 [ WARN] [1625587513.283598304]: CMD: Command 520 -- wait ack timeout [ WARN] [1625587513.284494749]: VER: unicast request timeout, retries left 2 [ INFO] [1625587514.277614100]: HP: requesting home position [ WARN] [1625587518.290370865]: CMD: Command 520 -- wait ack timeout [ WARN] [1625587518.290967695]: VER: unicast request timeout, retries left 1 [ WARN] [1625587518.292373231]: PR: request list timeout, retries left 2 [ WARN] [1625587519.283563437]: CMD: Command 410 -- wait ack timeout [ WARN] [1625587519.293509867]: PR: request list timeout, retries left 1 [ WARN] [1625587520.286364308]: WP: timeout, retries left 2 [ WARN] [1625587520.294077021]: PR: request list timeout, retries left 0 [ WARN] [1625587521.288005963]: WP: timeout, retries left 1 [ WARN] [1625587522.289692910]: WP: timeout, retries left 0 [ERROR] [1625587523.290587715]: WP: timed out. [ WARN] [1625587523.299727463]: CMD: Command 520 -- wait ack timeout [ WARN] [1625587523.300347464]: VER: unicast request timeout, retries left 0 [ INFO] [1625587524.277109828]: HP: requesting home position [ WARN] [1625587528.306434477]: CMD: Command 520 -- wait ack timeout [ WARN] [1625587528.307050572]: VER: your FCU don't support AUTOPILOT_VERSION, switched to default capabilities [ WARN] [1625587528.560649246]: CMD: Command 400 -- wait ack timeout [ WARN] [1625587533.307302483]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587534.277871112]: HP: requesting home position [ WARN] [1625587536.247667933]: GP: No GPS fix [ WARN] [1625587539.284003350]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587544.277131051]: HP: requesting home position [ WARN] [1625587549.282571069]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587554.277609684]: HP: requesting home position [ WARN] [1625587559.283302092]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587564.277288546]: HP: requesting home position [ WARN] [1625587566.416770614]: GP: No GPS fix [ WARN] [1625587566.453482852]: TM: Wrong FCU time. [ WARN] [1625587569.283187952]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587574.277340076]: HP: requesting home position [ WARN] [1625587579.283248269]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587584.277889264]: HP: requesting home position [ WARN] [1625587589.284601867]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587594.277669654]: HP: requesting home position [ WARN] [1625587596.602539088]: GP: No GPS fix [ WARN] [1625587599.283335208]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587604.277186215]: HP: requesting home position [ WARN] [1625587609.282810370]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587614.277481151]: HP: requesting home position [ WARN] [1625587619.283705833]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587624.277272309]: HP: requesting home position [ WARN] [1625587626.794851875]: GP: No GPS fix [ WARN] [1625587626.831893024]: TM: Wrong FCU time. [ WARN] [1625587629.283188997]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587634.277678850]: HP: requesting home position [ WARN] [1625587639.283534629]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587644.276938069]: HP: requesting home position [ WARN] [1625587649.282958348]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587654.277305683]: HP: requesting home position [ WARN] [1625587656.974995761]: GP: No GPS fix [ WARN] [1625587659.283262010]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587664.277906608]: HP: requesting home position [ WARN] [1625587669.286914986]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587674.277328794]: HP: requesting home position [ WARN] [1625587679.285650807]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587684.277802284]: HP: requesting home position [ WARN] [1625587687.151878341]: GP: No GPS fix [ WARN] [1625587687.188913092]: TM: Wrong FCU time. [ WARN] [1625587689.283016474]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587694.277409774]: HP: requesting home position [ WARN] [1625587699.283297467]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587704.277160467]: HP: requesting home position [ WARN] [1625587709.283727985]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587714.277792747]: HP: requesting home position [ WARN] [1625587717.333739528]: GP: No GPS fix [ WARN] [1625587719.284463491]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587724.277964675]: HP: requesting home position [ WARN] [1625587729.284644119]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587734.277318094]: HP: requesting home position [ WARN] [1625587739.283518324]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587744.277157672]: HP: requesting home position [ WARN] [1625587747.492357863]: GP: No GPS fix [ WARN] [1625587747.532774760]: TM: Wrong FCU time. [ WARN] [1625587749.283153091]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587754.277486266]: HP: requesting home position [ WARN] [1625587759.282904911]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587764.277209635]: HP: requesting home position [ WARN] [1625587769.284878634]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587774.277507500]: HP: requesting home position [ WARN] [1625587777.663067196]: GP: No GPS fix [ WARN] [1625587779.283800160]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587784.277913488]: HP: requesting home position [ WARN] [1625587789.291838983]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587794.277727771]: HP: requesting home position [ WARN] [1625587799.283133534]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587804.277482942]: HP: requesting home position [ WARN] [1625587807.835158274]: GP: No GPS fix [ WARN] [1625587807.873091878]: TM: Wrong FCU time. [ WARN] [1625587809.282989558]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587814.277719964]: HP: requesting home position [ WARN] [1625587819.283072148]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587824.277806003]: HP: requesting home position [ WARN] [1625587829.283997266]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587834.277409510]: HP: requesting home position [ WARN] [1625587838.007833131]: GP: No GPS fix [ WARN] [1625587839.283771449]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587844.277545845]: HP: requesting home position [ WARN] [1625587849.288167980]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587854.277502592]: HP: requesting home position [ WARN] [1625587859.283281336]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587864.277418352]: HP: requesting home position [ WARN] [1625587868.181598474]: GP: No GPS fix [ WARN] [1625587868.214599382]: TM: Wrong FCU time. [ WARN] [1625587869.283515111]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587874.277143613]: HP: requesting home position [ WARN] [1625587879.284989505]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587884.277533447]: HP: requesting home position [ WARN] [1625587889.283363002]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587894.277210346]: HP: requesting home position [ WARN] [1625587898.374710304]: GP: No GPS fix [ WARN] [1625587899.282976562]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587904.277529752]: HP: requesting home position [ WARN] [1625587909.283124943]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587914.277631282]: HP: requesting home position [ WARN] [1625587919.283363795]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587924.277116644]: HP: requesting home position [ WARN] [1625587928.548822484]: GP: No GPS fix [ WARN] [1625587928.585290828]: TM: Wrong FCU time. [ WARN] [1625587929.284834053]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587934.277995281]: HP: requesting home position [ WARN] [1625587939.284480067]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587944.277119255]: HP: requesting home position [ WARN] [1625587949.283318193]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587954.277500893]: HP: requesting home position [ WARN] [1625587958.721442093]: GP: No GPS fix [ WARN] [1625587959.283135230]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587964.277404309]: HP: requesting home position [ WARN] [1625587969.283135782]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587974.277221118]: HP: requesting home position [ WARN] [1625587979.284263228]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587984.277866110]: HP: requesting home position [ WARN] [1625587988.906852646]: GP: No GPS fix [ WARN] [1625587988.943523317]: TM: Wrong FCU time. [ WARN] [1625587989.284755501]: CMD: Command 410 -- wait ack timeout [ INFO] [1625587994.277151269]: HP: requesting home position [ WARN] [1625587999.282143762]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588004.277952789]: HP: requesting home position [ WARN] [1625588009.284546275]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588014.277982062]: HP: requesting home position [ WARN] [1625588019.087313619]: GP: No GPS fix [ WARN] [1625588019.283520739]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588024.277132948]: HP: requesting home position [ WARN] [1625588029.286095990]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588034.277204125]: HP: requesting home position [ WARN] [1625588039.284811915]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588044.277941394]: HP: requesting home position [ WARN] [1625588049.286552939]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588049.290746115]: GP: No GPS fix [ WARN] [1625588049.310784556]: TM: Wrong FCU time. [ INFO] [1625588054.277311127]: HP: requesting home position [ WARN] [1625588059.284576642]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588064.277371438]: HP: requesting home position [ WARN] [1625588069.282902052]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588074.277322048]: HP: requesting home position [ WARN] [1625588079.283374781]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588079.499596088]: GP: No GPS fix [ INFO] [1625588084.277939440]: HP: requesting home position [ WARN] [1625588089.283858543]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588094.277408218]: HP: requesting home position [ WARN] [1625588099.282744785]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588104.277984311]: HP: requesting home position [ WARN] [1625588109.283123720]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588109.678234955]: GP: No GPS fix [ WARN] [1625588109.715204931]: TM: Wrong FCU time. [ INFO] [1625588114.277176986]: HP: requesting home position [ WARN] [1625588119.282851193]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588124.276962794]: HP: requesting home position [ WARN] [1625588129.282709317]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588134.277746792]: HP: requesting home position [ WARN] [1625588139.286456945]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588139.853957104]: GP: No GPS fix [ INFO] [1625588144.277810096]: HP: requesting home position [ WARN] [1625588149.283301279]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588154.277716277]: HP: requesting home position [ WARN] [1625588159.284142166]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588164.277540945]: HP: requesting home position [ WARN] [1625588169.283450687]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588170.034482517]: GP: No GPS fix [ WARN] [1625588170.071461436]: TM: Wrong FCU time. [ INFO] [1625588174.277752374]: HP: requesting home position [ WARN] [1625588179.282987381]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588184.277593525]: HP: requesting home position [ WARN] [1625588189.283323413]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588194.277262187]: HP: requesting home position [ WARN] [1625588199.283065277]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588200.212097811]: GP: No GPS fix [ INFO] [1625588204.277439761]: HP: requesting home position [ WARN] [1625588209.285271741]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588214.277209403]: HP: requesting home position [ WARN] [1625588219.282576151]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588224.277983537]: HP: requesting home position [ WARN] [1625588229.283186431]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588230.384470109]: GP: No GPS fix [ WARN] [1625588230.417325262]: TM: Wrong FCU time. [ INFO] [1625588234.277387340]: HP: requesting home position [ WARN] [1625588239.283449578]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588244.277459899]: HP: requesting home position [ WARN] [1625588249.284923245]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588254.277991966]: HP: requesting home position [ WARN] [1625588259.283896621]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588260.609825892]: GP: No GPS fix [ INFO] [1625588264.277808005]: HP: requesting home position [ WARN] [1625588269.282924771]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588274.276987200]: HP: requesting home position [ WARN] [1625588279.282372203]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588284.277891066]: HP: requesting home position [ WARN] [1625588289.285231602]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588290.781710533]: GP: No GPS fix [ WARN] [1625588290.822378777]: TM: Wrong FCU time. [ INFO] [1625588294.277038636]: HP: requesting home position [ WARN] [1625588299.284107482]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588304.277297741]: HP: requesting home position [ WARN] [1625588309.282935909]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588314.277539858]: HP: requesting home position [ WARN] [1625588319.283129369]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588320.956746728]: GP: No GPS fix [ INFO] [1625588324.277819322]: HP: requesting home position [ WARN] [1625588329.286372933]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588334.277493675]: HP: requesting home position [ WARN] [1625588339.283099610]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588344.277801739]: HP: requesting home position [ WARN] [1625588349.284804620]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588351.136283466]: GP: No GPS fix [ WARN] [1625588351.173057023]: TM: Wrong FCU time. [ INFO] [1625588354.277743027]: HP: requesting home position [ WARN] [1625588359.284468214]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588364.277304671]: HP: requesting home position [ WARN] [1625588369.282805585]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588374.277779448]: HP: requesting home position [ WARN] [1625588379.283583668]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588381.319231626]: GP: No GPS fix [ INFO] [1625588384.277298114]: HP: requesting home position [ WARN] [1625588389.285747884]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588394.277289344]: HP: requesting home position [ WARN] [1625588399.283174596]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588404.277504043]: HP: requesting home position [ WARN] [1625588409.283281056]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588411.494054142]: GP: No GPS fix [ WARN] [1625588411.515320226]: TM: Wrong FCU time. [ INFO] [1625588414.277499308]: HP: requesting home position [ WARN] [1625588419.290953174]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588424.277425003]: HP: requesting home position [ WARN] [1625588429.283051167]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588434.277593420]: HP: requesting home position [ WARN] [1625588439.283482056]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588441.682078709]: GP: No GPS fix [ INFO] [1625588444.277989370]: HP: requesting home position [ WARN] [1625588449.284112943]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588454.277481055]: HP: requesting home position [ WARN] [1625588459.284680298]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588464.277208284]: HP: requesting home position [ WARN] [1625588469.283057503]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588471.877328770]: GP: No GPS fix [ WARN] [1625588471.914173161]: TM: Wrong FCU time. [ INFO] [1625588474.276975467]: HP: requesting home position [ WARN] [1625588479.282469819]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588484.277507810]: HP: requesting home position [ WARN] [1625588489.283214897]: CMD: Command 410 -- wait ack timeout [ INFO] [1625588494.278008685]: HP: requesting home position [ WARN] [1625588499.284022423]: CMD: Command 410 -- wait ack timeout [ WARN] [1625588502.051341812]: GP: No GPS fix [ INFO] [1625588504.277645499]: HP: requesting home position [ WARN] [1625588509.283542838]: CMD: Command 410 -- wait ack timeout


**### Diagnostics**

place here result of: rostopic echo -n1 /diagnostics level: 0 name: "mavros: FCU connection" message: "connected" hardware_id: "/dev/ttyACM0:115200" values:

Check ID


rosrun mavros checkid

OK. I got messages from 1:1.

---
Received 452 messages, from 1 addresses
sys:comp   list of messages
  1:1     0, 1, 2, 35, 36, 165, 33, 42, 24, 163, 74, 30, 150, 152, 27, 29, 62
vooon commented 3 years ago

From logs it looks like firmware do not accept incoming messages. Since apm2.6 quite old, i suppose that it do not support Mavlink 2.0, so try to set fcu_protocol: v1.0.

elonv commented 3 years ago

@vooon i knew apm 2.6 works on v1 mavlink protocol..so immediately after installing mavros i looked for connection protocol and changed it to apm 2.6 supported one i.e v1..but did'nt worked.

vooon commented 3 years ago

@elonv you probably done it wrong:

/mavros/fcu_protocol: v2.0
elonv commented 3 years ago

@vooon This is my launch file:

And this is what i get after roslaunch:

PARAMETERS

/mavros/cmd/use_comp_id_system_control: False /mavros/conn/heartbeat_mav_type: ONBOARD_CONTROLLER /mavros/conn/heartbeat_rate: 1.0 /mavros/conn/system_time_rate: 1.0 /mavros/conn/timeout: 10.0 /mavros/conn/timesync_rate: 10.0 /mavros/distance_sensor/rangefinder_pub/field_of_view: 0.0 /mavros/distance_sensor/rangefinder_pub/frame_id: lidar /mavros/distance_sensor/rangefinder_pub/id: 0 /mavros/distance_sensor/rangefinder_pub/send_tf: False /mavros/distance_sensor/rangefinder_pub/sensor_position/x: 0.0 /mavros/distance_sensor/rangefinder_pub/sensor_position/y: 0.0 /mavros/distance_sensor/rangefinder_pub/sensor_position/z: -0.1 /mavros/distance_sensor/rangefinder_sub/id: 1 /mavros/distance_sensor/rangefinder_sub/orientation: PITCH_270 /mavros/distance_sensor/rangefinder_sub/subscriber: True /mavros/fake_gps/eph: 2.0 /mavros/fake_gps/epv: 2.0 /mavros/fake_gps/fix_type: 3 /mavros/fake_gps/geo_origin/alt: 408.0 /mavros/fake_gps/geo_origin/lat: 47.3667 /mavros/fake_gps/geo_origin/lon: 8.55 /mavros/fake_gps/gps_id: 4 /mavros/fake_gps/gps_rate: 5.0 /mavros/fake_gps/horiz_accuracy: 0.5 /mavros/fake_gps/mocap_transform: False /mavros/fake_gps/mocap_withcovariance: False /mavros/fake_gps/satellites_visible: 6 /mavros/fake_gps/speed_accuracy: 0.0 /mavros/fake_gps/tf/child_frame_id: fix /mavros/fake_gps/tf/frame_id: map /mavros/fake_gps/tf/listen: False /mavros/fake_gps/tf/rate_limit: 10.0 /mavros/fake_gps/tf/send: False /mavros/fake_gps/use_hil_gps: True /mavros/fake_gps/use_mocap: True /mavros/fake_gps/use_vision: False /mavros/fake_gps/vert_accuracy: 0.5 /mavros/fcu_protocol: v1.0

i could not see anything wrong Roslaunch shows it the way told /mavros/fcu_protocol: v1.0. (v1 as apm 2.6 works on mavlink protocol version 1).

vooon commented 3 years ago

@elonv , hmm, yes, just your previous log has v2.0. But you still can't do anything? Most obvious problem if message CRC's do not match on both edges, you'll get no commands, parameters and mission. But i do not remember any significant changes for common.xml.

elonv commented 3 years ago

@vooon no still cant do anything.

But i can change mode by command mavros mavsys mode -c STABILIZE..And only stabilize mode works, other modes shows timed out..And with arming command request failed...i am getting data of imu from fcu by running rostopic echo.. but this arming thing does not seems to work...

Where could i find this common xml...and what it has to do with CRC...?

How this arming problem could be solved?..its been seven days and i am struck at this arming issue...I am able to arm the quadcopter with Tnamsmitter and receiver...even able to arm it via apm planner 2 gui via arm/disarm event...But with mavros unable to arm it..

vooon commented 3 years ago

https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/common.xml , message CRC is an mavlink implementation detail how it prevent unknown/changed messages to come. What mavros prints to it's console, when you're trying to call arming, mode -c AUTO?

elonv commented 3 years ago

@vooon is it right to say CRC message is just like parameters on apm planner2 or mission planner which involves pre flight check etc etc..????

1] when i run ROSRUN MAVROS MAVSAFETY ARM - it shows request failed. check log messages.In log messages only error i found is /USE_SIM_TIME is not set.

2] And when i run ROSRUN MAVROS MAVSYS MODE -C AUTO - it shows timed out.

3] But when i run ROSRUN MAVROS MAVSYS MODE -C STABILIZE - This command works and it shows mode changed, But even with mode there is a problem which is, I am only able to set mode to stabilize....EVERY MODE EXCEPT STABILIZE SHOWS TIMED OUT...

elonv commented 3 years ago

@vooon in https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/common.xml there is :

entry value="268435456" name="MAV_SYS_STATUS_PREARM_CHECK"> description 0x10000000 pre-arm check status. Always healthy when armed entry

May be changing entry value to "0" .. might help..because this could disable prearm check...am i right?...may be this could stopping it to arm..or is there any other way to disable to prearm check on mavros package...because on apm planner2 side i have disabled pre arm check.

elonv commented 3 years ago

@ vooon log output for failing arm command:

[rospy.client][INFO] 2021-07-06 18:06:36,781: init_node, name[/mavsafety_6570_1625574996706], pid[6570] [xmlrpc][INFO] 2021-07-06 18:06:36,781: XML-RPC server binding to 0.0.0.0:0 [xmlrpc][INFO] 2021-07-06 18:06:36,781: Started XML-RPC server [http://vansh:46601/] [rospy.init][INFO] 2021-07-06 18:06:36,782: ROS Slave URI: [http://vansh:46601/] [rospy.impl.masterslave][INFO] 2021-07-06 18:06:36,782: _ready: http://vansh:46601/ [rospy.registration][INFO] 2021-07-06 18:06:36,783: Registering with master node http://localhost:11311 [xmlrpc][INFO] 2021-07-06 18:06:36,783: xml rpc node: starting XML-RPC server [rospy.init][INFO] 2021-07-06 18:06:36,882: registered with master [rospy.rosout][INFO] 2021-07-06 18:06:36,883: initializing /rosout core topic [rospy.rosout][INFO] 2021-07-06 18:06:36,892: connected to core topic /rosout [rospy.simtime][INFO] 2021-07-06 18:06:36,896: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic [rospy.internal][INFO] 2021-07-06 18:06:37,098: topic[/rosout] adding connection to [/rosout], count 0 [rospy.core][INFO] 2021-07-06 18:06:41,907: signal_shutdown [atexit] [rospy.internal][INFO] 2021-07-06 18:06:41,914: topic[/rosout] removing connection to /rosout [rospy.impl.masterslave][INFO] 2021-07-06 18:06:41,914: atexit

vooon commented 3 years ago

That CRC is a part of communication protocol, it's defined by message definition. Not some kind of parameter, just older version of messages could have some changes, resulting in crc changes. I think probably it's worth to try last available version for Indigo/Jade (you would need to follow source install and use old version of mavlink).

That is log is for roscore, i'm asking about mavros log, by default it's being printed to the console where you run roslaunch. E.g.:

[ WARN] [1625588489.283214897]: CMD: Command 410 -- wait ack timeout
[ INFO] [1625588494.278008685]: HP: requesting home position
[ WARN] [1625588499.284022423]: CMD: Command 410 -- wait ack timeout
elonv commented 3 years ago

@vooon i mentioned while starting the issue that i have tried different versions of both mavros and mavlink by installing them from source (versions from 2016-17-18-19) for ros kinetic.But what here you are suggesting is to try mavlink version for indigo..right?

And when i run arming service , the console output shows: CMD: Command 400 -- wait ack timeout

vooon commented 3 years ago

Yes, around 2015 i had have a plane with apm 2.6, and mavros worked good. So i suppose that might better to try old version of the mavlink first. Or you might consider to upgrade to something newer, on 32-bit ARM. Because as i know Arducopter no longer support that old boards.

vooon commented 3 years ago

https://github.com/mavlink/mavros/blob/f1dad6c21b767ef2d3e1bff57952defc318c49bf/mavros/launch/apm_config.yaml#L38

Try to set it true. Maybe that is the problem for COMMAND_LONG.

elonv commented 3 years ago

@vooon setting use_comp_id_system_control: to TRUE did not worked . Still getting request failed. And on console command 400 wait ack time out.

I will try to download versions from 2015.

Consider to upgrade to something newer ..are you suggesting me to buy upgraded version of flight controller?..I will do that if nothing seems to work.But first i will try older versions.

elonv commented 3 years ago

@vooon i installed mavros version 0.18.5-0 and mavlink version 2016.12.12-0 these versions i did not tried earlier...and it worked. These version were launched around november and december and i remember working on mavros jan 2017 and at that time they worked ..so i thought of giving try to these versions..and glad they worked.

But one thing is there that apm 2.6 only arms for few seconds...The solid red light which signifies it is armed starts blinking after few seconds of solid red light of arming.

vooon commented 3 years ago

Maybe some preflight check didn't pass? Will you get the same if arm from receiver?

elonv commented 3 years ago

Few days ago it happened with receiver also but then i did radio calibration and esc calibration then it got hold over arming.May be it is happening because of firmware as after that i did not tried it arming with receiver and installed firmware many time but did not go for initial setup.

Is there a way to bypass preflight check in mavros?

vooon commented 3 years ago

It's on firmware side. Check parameters, some of them could disable that checks (but i do not remember which exactly).

elonv commented 3 years ago

I think i have to reflash the firmware and restart initial setup.

@vooon I am trying to manually control it via logitech 710 ..without involving rc override ..is it possible..? From hector quadrotor i have made some changes into joy teleop node and able to publish on /mavros/setpoint_velocity/cmd_vel.. do you think that would help me in controlling quadcopter manually without involving rc at all?

JulienRineau commented 2 years ago

Hi, I'm having the same problem.

Apparently the problem is solved by installing mavros version 0.18.5-0 and mavlink version 2016.12.12-0. I found on #941 that it can be done by editing the mavros.rosinstall file after running rosinstall_generator --rosdistro kinetic mavlink | tee /tmp/mavros.rosinstall and rosinstall_generator --upstream mavros | tee -a /tmp/mavros.rosinstall.

However, I do not find the how to edit the mavros.rosinstall file. I did not even find its location (nor that of the /tmp folder).

Please can you explain @elonv or @vooon how you've done it ?