Questions tagged [px4]

PX4 autopilot is an open-source autopilot system. The project started in 2009 at ETH Zurich and now it has a global adoption by many commercial drone vendors.

56 questions
2
votes
1 answer

I am trying to have stable flight with px4 and ros2 offboard control

Hello guys I have a offboard code which give about 50 setpoints to drone. It draws spiral with that setpoints. My problem is I couldnt get smooth travel. In every setpoint drone gives a high roll or pitch instant and then floats to the next…
Ege Alşan
  • 21
  • 3
2
votes
4 answers

Is there C++ SDK for mavlink - Ardupilot?

I want to control Ardupilot drones (for example in Gazebo simulator) using C++ (NOT ROS). Dronekit is a great tool for python but I want something similar using C++. MAVSDK is only compatible with PX4 but I need it for Ardupilot. Is there C++ SDK…
Roy Amoyal
  • 717
  • 4
  • 14
2
votes
0 answers

PX4 rotation over z axis low yaw_rate

The goal I want to achieve is to rotate the drone over z axis slow and when it detects an object it will stop rotating. The first node is publishing the string "Searching" and the second node is subscribing to it. So every time it receives…
Diego
  • 21
  • 2
2
votes
1 answer

Can i connect to pixhawk with python?

I want to connect pixhawk without Mission Planner because Mission Planner supported Python 2.7 script but i work on Python 3.7 so can i connect to pixhawk Just Python with telemetry module? OS: Win 10
M. Sahin
  • 35
  • 1
  • 6
2
votes
1 answer

Handling of ROS / MAVROS messages on bare metal hardware

I have a project which involves simple serial communication with a proxy using a predefined small subset of MAVLink and ROS / MAVROS messages. I'm running on my own bare metal embedded ARM Cortex F4 hardware with no underlying operating system…
Max van Daalen
  • 317
  • 2
  • 14
1
vote
1 answer

PositionTargetGlobal failed because no origin

When I launch the mavros_posix_sitl.launch in px4, it always warns that: "PositionTargetGlobal failed because no origin" This leads to the inaccurate flight altitude of UAV in gazebo. How to solve this problem? I have no idea.
memymine
  • 11
  • 2
1
vote
1 answer

ROS, when running px4 with gazebo_iris_opt_flow Drone camera not creating any topic

I start mavros with this code: roslaunch mavros px4.launch fcu_url:="udp://:14540@192.168.1.36:14557" then I start gazebo Quadrator with Optical Flow simulation with this code: make px4_sitl_default gazebo_iris_opt_flow source…
MTO
  • 41
  • 5
1
vote
0 answers

PX4 with ROS2: which Ubuntu Linux development environment is necessary?

I am attempting to construct the environment to run PX4 with ROS2 Foxy on Ubuntu 20.04. So far I have been following this guide and I was able to get to the very end of it, in particular to the section "Sanity Check the Installation". Following…
1
vote
0 answers

How to find the max file descriptors in Nuttx RTOS?

I have a limited understanding of the Nuttx OS but have run into a limitation set by the config parameter CONFIG_NFILE_DESCRIPTORS using the PX4 stack. I'm using a Pixhawk 4 FCU board that has a STM32F76 processor. The firmware build (px4_fmu-v5) by…
Thorn
  • 11
  • 1
1
vote
0 answers

How to integrate an OpenMV H7 Plus optical flow camera with a flight controller running PX4?

I've having some difficulty getting my flight controller (HolyBro Durandal) to read data from my OpenMV optical flow camera. I'm using optical flow because I want to operate my drone in a GPS denied environment. Flight controllers need position data…
Patrick Lafferty
  • 337
  • 1
  • 7
  • 20
1
vote
2 answers

Problem with certificate while trying to compile with Gradle

I've been desperately trying to use ROS2 and PX4, but I can't compile all of the necessary packages: Fast-RTPS-Gen For people to know PX4: I am using Gradle version 6.3 installed with sdk, as explained on the PX4 website. I have download the…
ebernardes
  • 129
  • 1
  • 12
1
vote
0 answers

Error while building px4_sitl in Ubuntu 18.04 LTS

Error while building px4_sitl gazebo... please help me I referenced this link. input command : make px4_sitl gazebo os : Ubuntu 18.04 lts Here's my terminal log : xxxx@xxxx-OMEN-30L-Desktop-GT13-1xxx:~/PX4-Autopilot$ make px4_sitl gazebo --- skip…
eungbin
  • 23
  • 4
1
vote
0 answers

QGroundControl Video Source issue

I'm dealing with a tricky problem on QGroundControl, it doesn't show video source options when I'm connected to the UAV, and I have no idea how to make this show up. Already tried reinstalling with the recommendations, installing Qt Creator, but…
Pingunah
  • 11
  • 2
1
vote
2 answers

Use specific protobuf version when multiple versions are installed

I am trying to compile the gazebo example provided by PX4, according to PX4's instructions. I am working on Ubuntu-18.04. When running the command: make px4_sitl gazebo, following error occurs: ... In file included from Range.pb.h:27:0, …
LoW
  • 582
  • 7
  • 15
1
vote
1 answer

Dronekit upload to Pixhawk 4 - rounding issue

When I upload to the Pixhawk via Mission Planner, and then download it again, there doesn't seem to be any issue. But when I use Dronekit to upload a mission file, it comes back looking very strange. Here's the (simplified) code I use to…
catokass
  • 31
  • 4
1
2 3 4