Closed SimonVleugels closed 6 years ago
What you see in mavros logs when rosrun mavros mavsafety arm
?
When running rosrun mavros mavsafety arm
I get following output:
The propellers also start rotating and he go into AUTO.LAND mode.
[ INFO] [1512314251.613677663]: IMU: High resolution IMU detected!
[ INFO] [1512314251.614987859]: IMU: Attitude quaternion IMU detected!
[ WARN] [1512314251.615954882]: TM: Clock skew detected (-1512314235.465276957 s). Hard syncing clocks.
[ INFO] [1512314251.981568965]: CON: Got HEARTBEAT, connected. FCU: PX4 Autopilot
[ INFO] [1512314251.993866407]: IMU: High resolution IMU detected!
[ INFO] [1512314251.994895981]: IMU: Attitude quaternion IMU detected!
[ INFO] [1512314252.996292936]: VER: 1.1: Capabilities 0x00000000000024ef
[ INFO] [1512314252.996574392]: VER: 1.1: Flight software: 01060500 (00000000FFFFFFFF)
[ INFO] [1512314252.996768609]: VER: 1.1: Middleware software: 01060500 (00000000FFFFFFFF)
[ INFO] [1512314252.996945586]: VER: 1.1: OS software: 000000c0 (00000000FFFFFFFF)
[ INFO] [1512314252.997303239]: VER: 1.1: Board hardware: 00000011
[ INFO] [1512314252.997637924]: VER: 1.1: VID/PID: 26ac:0011
[ INFO] [1512314252.997802923]: VER: 1.1: UID: 3034510831323737
[ WARN] [1512314253.001378359]: CMD: Unexpected command 520, result 0
So no FCU:
messages, and because motors turn on likely you successfully armed fcu.
@vooon but then why am I not been able to arm the fcu with the mavros_msgs/OverrideRCIn messages?
@vooon can you maybe supply me some example code which should be able to do something with the drone without using gps? Because everything I can find is using a gps.
What message types are supported for using in offboard mode and without gps? For example setpoint_velocity/cmd_vel?
Hi, I'm trying to control a drone from a Raspberry through mavros by using overriderc messages (pixhawk with px4 firmware). I'm using this example, but instead of changing the pose of the drone (no gps), I want to use override rc messages to control the drone. I have been able to get into offboard mode, but the drone won't arm (red flashing led indicator). With the default example (using setpoint_position/local messages) I'm able to arm, but then the pixhawk shutsdown.
EDIT When I try running the code in gazebo, I get the same problem, the drone wont arm. But if i first send 500 setpoint_position/local messages the drone will arm perfectly, after the 500 messages he will disarm instantly... Am I doing something wrong, or can someone supply me some example code to arm the pixhawk without using messages which need a gps?
MAVROS version and platform
Mavros: updated 26/11 ROS: Kinetic Ubuntu: 16.04 Rasbian: Jessie
Autopilot type and version
[ ] ArduPilot [ x] PX4
Version: updated 30/11
Diagnostics
Check ID
px4.launch
Code