PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

No thrust scaling factor found, DO NOT FLY

Open weiyuhe opened this issue 4 years ago • 2 comments

I was following the instruction on https://dev.px4.io/master/en/simulation/ros_interface.html. When I ran: roslaunch mavros px4.launch fcu_url:="udp://:[email protected]:14557"

I got the following errors:

[FATAL] [1607550676.819332084]: No thrust scaling factor found, DO NOT FLY
[FATAL] [1607550676.819678433]: No system mass found, DO NOT FLY
[FATAL] [1607550676.820004055]: No yaw rate scaling factor found, DO NOT FLY

When I proceed to run:

cd <PX4-Autopilot_clone>
DONT_RUN=1 make px4_sitl_default gazebo
source ~/catkin_ws/devel/setup.bash    # (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 posix_sitl.launch

Gazebo was stuck in "perparing your world". And there are three errors:

ERROR [parameters] ignoring unrecognised parameter 'BAT_CNT_V_CURR'
ERROR [parameters] ignoring unrecognised parameter 'BAT_CNT_V_VOLT'
ERROR [parameters] ignoring unrecognised parameter 'CAL_ACC_PRIME'
ERROR [parameters] ignoring unrecognised parameter 'CAL_GYRO_PRIME'
ERROR [parameters] ignoring unrecognised parameter 'CAL_MAG_PRIME'

In the log file from posix_sitl.launch, I found:

most recent call last):
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 563, in connect
    self.local_endpoint = self.socket.getsockname()
AttributeError: 'NoneType' object has no attribute 'getsockname'

Anyone has idea on why this is happening? I am using melodic and ROS 18.04, and I am running px4 in SITL.

weiyuhe avatar Dec 09 '20 22:12 weiyuhe

I think you must be using older PX4 because parameters like CAL_ACC_PRIME/CAL_GYRO_PRIME no longer exist.

Can you give this another try with current PX4?

dagar avatar Jan 21 '21 00:01 dagar

i have same problem

sunrising101 avatar Jul 23 '22 01:07 sunrising101