Quantcast
Channel: Pixhawk - Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink
Viewing all 871 articles
Browse latest View live

Pixhack 2.4.8 booting problem

$
0
0

I have a problem when connecting my pixhack 1 (2.4.8) to PC through usb cable as it is not recognized by PC at all . I have checked ports in Windows device manger where there was no errors and no px port , I have solid green (PWR) solid Orange (P/E) flashing Blue (ACT)
before it was working properly when I fly my quad copter but when I tried AP with fixed wing plane it got this problem . I have changed USB cable and reinstall Mission Planner but not thing change I have used safety switch and reset autopilot by little pin inserted on the hole beside usb port but also noting change``

1 post - 1 participant

Read full topic


How to use android phone sensors instead of pixhawk sensors

$
0
0

Hello . I want to use other sensors to connect to pixhawk . I want read android phone sensors with android application and send to pixhawk and pixhawk use this sensors instead of it self sensors . Any one can help ?

1 post - 1 participant

Read full topic

Custom pixhawk2 behavior when GPS lost

$
0
0

Hello,
I have a plane with pixhawk 2. I use mission planner.
How can I modify plane’s default behavior when GPS signal is lost? Should I implement some kind of custom functions on mission planner or it must be made with custom programming solution?
I will be grateful for the help and advice

1 post - 1 participant

Read full topic

Here3 GPS lights and safety switch

$
0
0

HEX has released the Here3 to replace the Here2. They say they will no longer be making there Here2’s. The Here3 apparently has RTK built in. Great right? Well the downfall is it only communicates over CAN protocol. My issues with that is no safety switch and no LED lights. The GPS picks up satellites, but I haven’t flown with one yet.

Is there any way that PX4 can handle controlling the LEDs and the safety switch on the Here3 using CAN? That would be awesome. I would hate to swap GPS’s sense I have used Here GPS’s for 3 years.

Any help or further knowledge would be appreciated.

2 posts - 1 participant

Read full topic

Pixhawk 4 sensors not found

$
0
0

This is my first build with Pixhawk 4. I want to show my drone battery percentage on my transmitter (FrSky X9 Lite). But when I click on discover sensors only RSSI and RxBt are found. (See image). I have connected my receiver (FrSky X9R) to the Pixhawk 4 via SBUS.

What did I do wrong?
Thank you in advance!

1 post - 1 participant

Read full topic

X500 ESC Wiring Help

$
0
0

I am trying to build the X500 drone and have currently finished up soldering the connections between the PM07 and the 4x BL Heli ESC 20A’s. The soldering was successful, however, there are two other intertwined wires coming from the ESC’s- which are the signal and ground wires (yellow and black). I am wondering how do I connect these to the PM07? Which exact pins do I use for the connection? And after I finish up the wiring process, can I just press the calibrate button on QGroundControl to finish up setting the ESC’s up, or is there more to do?

1 post - 1 participant

Read full topic

Esc doesn't work with custom uavcan device

$
0
0

Hello, everybody.
I have own device that allows to send and receive messages through UAVCAN via can bus.
I expect that if I send a esc::status message to pixhawk from this device it will be processed in uavcan/actuators/esp.cpp module. So, I want to use this device as UAVCAN ESC like Sapog and other.
But esc_status_sub_cb() callback in this module never called.

I think the problem is in pixhawk level (may be I miss smth or forget to start/config smth) because at other level all looks good:

  • uavcan gui tool says that this device works perfect because I can see all messages (from pixhawk and from this device),
  • this device successfully receives all messages from pixhawk, for example RawCommand,
  • this device successfully transmit messages to pixhawk such as rangesensor::measurement (I wrote module on PX4 that allows to use i2c-rangefinder via UAVCAN).
    So, the only problem is PX4 doesn’t process esc::status message.

Can anyone advice me what could be a reason?

2 posts - 1 participant

Read full topic

QGC Detected 0 channel of Spectrum DSMX receiver

$
0
0

Hi Guys,
Commnunication between pixhawk 4 and STC4651T DSMX receiver using QGC, does not work.
my setup consist of

  • pixhawk 4 (uploaded newest FW via QGC)
  • SPM4651T DSMX sprectrum receiver
  • DX6e Transmitter

please see setup drawing

When performing “spektrum bind” from QGC this make Pixhawk led B/E blinks yellew for ever, but nothing happens. Futhermore it is not possible to “Calibrate” Radio Setup, keeps getting
"Detected 0 radio channels. To operatate PX4, you need at least t channels".
When I try to bind from transmitter it seem to be working.
Pixhawk documentation state that all spectrum DSM pairs is supported. I spend a lot of money on the kit Pixhawk 4 and receiver/transmitter setup hoping it was plug and play. What seem to be problem here? please help me on this.
br

3 posts - 2 participants

Read full topic


Getting started: error opening shell on Windows via Cygwin

$
0
0

Hi Pixhawk/PX4 community,

I am trying to get started with the first application (Hello Sky) on Pixhawk 4 from the PX4 docs. Developing on a windows PC, I wrote an compiled the application using the Cygwin toolchain, and successfully uploaded it to the Pixhawk.

However, I can’t get a shell to open to communicate with the Pixhawk. When I try to pip-install pymavlink and pyserial The following error occurs upon the installation of the lxml package

Error: Please make sure the libxml2 and libxslt development packages are installed.

This is an issue that apparently more people have when installing lxml on Windows. I have tried the following solutions:

1. install lxml with prebuilt binary
The most heard solution for Windows on stackexchange is to dowload a prebuilt binary wheel and install this with pip.

When I try this for the python 3.6 version (cp36, 64bit) or any of the other wheels, it gives the error

$ pip3 install lxml-4.5.2-cp36-cp36m-win_amd64.whl
ERROR: lxml-4.5.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

None of the wheels in the list seem to work, maybe because of the Cygwin environment?

2. copy the libxml2 and libxslt files over to the toolchain/cywin64/bin folder
As per these instructions, you can just dowload the libxml2 and libxslt packages from here and place the files from the bin folder in toolchain/cywin64/bin.

As the original author writes, the libxml2 and libxslt packages depend on zlib and iconv, so I also copied the contents of those packages over.

When testing their installation using xmllint --version it does return something:

$ xmllint --version
xmllint: using libxml version 20909
  compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib Lzma

but for xsltproc --version, the following error appears:

$ xsltproc --version
C:/PX4/toolchain/cygwin64/bin/xsltproc.exe: error while loading shared libraries: libxml2-2.dll: cannot open shared object file: No such file or directory

This I find very strange because the file is actually there in toolchain/cywin64/bin. Maybe I should place the files in another location?

3. run the shell outside of Cygwin

Interestingly, I can install lxml on my local install of Python. This made me question whether I could not just open the shell outside of the Cygwin console. I therefore made a local venv, pip installed pymavlink and pyserial and tried to run Tools/mavlink_shell.py from there.

However, this script relies on the termios package, which is only available for Unix.

By now I am out of options what to do to make the shell connection work. I hope that someone here knows how to solve this issue. Probably other developers using the Cygwin toolchain must have come across the same problems.

Thanks a lot for your help/thoughts!

1 post - 1 participant

Read full topic

Airframe Combination

$
0
0

I am brand new to the flight controllers and firmware. I just graduated from uni in May with an Aerospace Engineering degree, but me and my team’s senior design project had gone to the absolute shitter due to covid. Anyway, our design was to integrate an RC car frame and a quadcopter body into one. Using various sensors, either a ground or flight mode would be triggered. Of course we were bullshitting our advisor at the time that this was a great idea and it would work, but we actually hadn’t the slightest clue.

So I am now wondering, is it possible to flash two different kinds of airframes such as a quadcopter+ and rover into a single Pixhawk flight controller? If so, how would I switch between the two airframes on site? Thanks!

1 post - 1 participant

Read full topic

Bootloader issues and uploading firmware

$
0
0

I was wondering if I could get some help with debugging my RadioLink Pixhawk(https://www.robotshop.com/uk/radiolink-pixhawk-advanced-autopilot-se100-gps.html). It no longer is able to upload firmware using ./waf and QGC. With ./waf it just hangs at the text saying “if the board does not respond in 1-2 seconds please plug it back in etc etc” (I have unplugged and plugged it and it and no change). Furthermore when trying to upload with QGC I see the following:

.

I have also seen persons suggesting to use https://ardupilot.org/dev/docs/using-DFU-to-load-bootloader.html but I am getting issues to get it into dfu mode.

Additional Information:
System: Ubuntu 16.04
Tools used: ./waf and QGC.

1 post - 1 participant

Read full topic

Usb not recognized in windows 10

$
0
0

Have pixhawk 4 and started having issues with windows 10 not recognizing the usb (drone).
Have been trying qground control and mission planner. Have two drones, the other with pixhawk px4 has no issues and connects right away. I can get the problem drone to link up with qground control using cell phone app and telemetry radio using onboard usb connection. Just not link to laptop computer.
Thanks

1 post - 1 participant

Read full topic

Changing control direction

$
0
0

I have a Quadcopter with a wierd problem. The direction changes mid flight. All is well at takeoff until a few seconds later, the craft changes its direction relative to the controls, eg craft moves left with right input and moves back with forward input. A little later everything changes back to normal. Hope someone can help. Thanks.

1 post - 1 participant

Read full topic

Why does FMU V5 not have IMU temperature heating?

$
0
0

Does anyone know why the hardware version of FMU V5 does not have IMU temperature heating function?

1 post - 1 participant

Read full topic

External compass undetected

$
0
0

Hi, I noticed that the latest px4 versions (> 1.8.0) do not detect the external compass (this one ) on my mRo pixhawk based multicopter.

The second compass comes back again in the Sensors list after calibration only when I downgrade to version 1.8.0.
Is LIS3MDL still supported by the newest versions of PX4 firmware?

It’s more than a year that I am not able to upgrade the firmware.
I have already asked for help but nobody ever replied. Could anybody please provide any insight on this issue?

Thank you

---- UPDATES ----

I have just run some tests on my three “identical” mRo pixhawks.
Using the same firmware (1.10.1) on the three of them, just one can see three compasses, while the other two can detect only the internal one.

Then I read the @dlwalter’s posts about i2c and the lis3mdl sensor and I used the mavlink console to check the i2c bus. I ran the i2cdetect command and, on the pixhawks that detect only one compass, it returned nsh: i2cdetect: command not found.
So clearly the problem is somewhere in the i2c bus driver.

I hope this can be useful to whoever wants to help me…

Thanks again

3 posts - 2 participants

Read full topic


Can't connect pixhawk with computer and pixhawk gives solid blue light

$
0
0

Hello. Our Pixhawk 2.4.8 takes power but doesn’t work. Any ideas? We tried changing USB cable, deleting firmware from micro SD card but they didn’t work.

2 posts - 2 participants

Read full topic

Fixed Wing HIL not working in Gazebo

$
0
0

I have been trying to implement hardware in the loop for fixed-wing using Gazebo. I am using the latest Pxihawk firmware and QGround control. I have noticed that the HIL framework that QGround has for fixed-wing is HilStar for xplane. I tried using that firmware but for some reasons, my plane doesn’t behave the way it should (It starts rotating and keeps on moving here and there and if I try to instruct it to do something, it doesn’t.)

So, I want to know if I should make a separate airframe for the Gazebo Fixed-wing or is there anything that I am missing?

Note that HIL with quadcopter is working perfectly its only the fixed-wing and VTOL.

2 posts - 2 participants

Read full topic

Gazebo Simulation

$
0
0

Hi All,

Followed the documentation to run the simulator on my Jetson Xavier NX. I was a little confused by the docs and the behavior. Here is my terminal output. I’m never able to execute any commands but Gazeboi does start with the vehicle. I assume I’m missing something. Any help is greatly appreciated.

(ros) magneto@magneto-desktop:~/catkin_ws/src/Firmware$ make px4_sitl gazebo
[0/4] Performing build step for ‘sitl_gazebo’
ninja: no work to do.
[3/4] cd /home/magneto/catkin_ws/src/F…ws/src/Firmware/build/px4_sitl_default
SITL ARGS
sitl_bin: /home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/bin/px4
debugger: none
program: gazebo
model: none
world: none
src_path: /home/magneto/catkin_ws/src/Firmware
build_path: /home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default
empty model, setting iris as default
GAZEBO_PLUGIN_PATH :/home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/build_gazebo:/home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/home/magneto/catkin_ws/src/Firmware/Tools/sitl_gazebo/models:/home/magneto/catkin_ws/src/Firmware/Tools/sitl_gazebo/models
LD_LIBRARY_PATH /home/magneto/catkin_ws/devel/lib:/opt/ros/melodic/lib:/home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/build_gazebo:/home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/build_gazebo
empty world, setting empty.world as default
SITL COMMAND: “/home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/bin/px4” “/home/magneto/catkin_ws/src/Firmware”/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t “/home/magneto/catkin_ws/src/Firmware”/test_data
INFO [px4] Creating symlink /home/magneto/catkin_ws/src/Firmware/ROMFS/px4fmu_common -> /home/magneto/catkin_ws/src/Firmware/build/px4_sitl_default/tmp/rootfs/etc


| ___ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /
| |
| | / /^\ \ ___ |
_| / / |_/

px4 starting.

INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
SYS_AUTOCONFIG: curr: 0 -> new: 1

  • SYS_AUTOSTART: curr: 0 -> new: 10016
    BAT_N_CELLS: curr: 0 -> new: 3
    CAL_ACC0_ID: curr: 0 -> new: 1311244
    CAL_GYRO0_ID: curr: 0 -> new: 1311244
    CAL_MAG0_ID: curr: 0 -> new: 197388
    CBRK_SUPPLY_CHK: curr: 0 -> new: 894281
    COM_RC_IN_MODE: curr: 0 -> new: 1
    EKF2_ANGERR_INIT: curr: 0.1000 -> new: 0.0100
    EKF2_GBIAS_INIT: curr: 0.1000 -> new: 0.0100
    COM_ARM_EKF_AB: curr: 0.0022 -> new: 0.0050
    EKF2_REQ_GPS_H: curr: 10.0000 -> new: 0.5000
    MC_PITCH_P: curr: 6.5000 -> new: 6.0000
    MC_PITCHRATE_P: curr: 0.1500 -> new: 0.2000
    MC_ROLL_P: curr: 6.5000 -> new: 6.0000
    MC_ROLLRATE_P: curr: 0.1500 -> new: 0.2000
    MPC_Z_VEL_P_ACC: curr: 4.0000 -> new: 12.0000
    MPC_Z_VEL_I_ACC: curr: 2.0000 -> new: 3.0000
    MPC_XY_P: curr: 0.9500 -> new: 0.8000
    MPC_XY_VEL_P_ACC: curr: 1.8000 -> new: 4.0000
    MPC_XY_VEL_D_ACC: curr: 0.2000 -> new: 0.3200
    RTL_RETURN_ALT: curr: 60.0000 -> new: 30.0000
    SDLOG_MODE: curr: 0 -> new: 1
    SDLOG_PROFILE: curr: 1 -> new: 131
    SDLOG_DIRS_MAX: curr: 0 -> new: 7
    SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
    SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
    TRIG_INTERFACE: curr: 4 -> new: 3
    COM_CPU_MAX: curr: 90.0000 -> new: -1.0000
    IMU_INTEG_RATE: curr: 200 -> new: 250
    NAV_ACC_RAD: curr: 10.0000 -> new: 2.0000
    RTL_DESCEND_ALT: curr: 30.0000 -> new: 10.0000
    RTL_LAND_DELAY: curr: -1.0000 -> new: 0.0000
    PWM_MAX: curr: 2000 -> new: 1950
    PWM_MIN: curr: 1000 -> new: 1075
    GPS_UBX_DYNMODEL: curr: 7 -> new: 6
  • SYS_AUTOCONFIG: curr: 1 -> new: 0
    INFO [dataman] Unknown restart, data manager file ‘./dataman’ size is 11798680 bytes
    INFO [simulator] Waiting for simulator to accept connection on TCP port 4560
    Gazebo multi-robot simulator, version 9.14.0
    Copyright © 2012 Open Source Robotics Foundation.
    Released under the Apache 2 License.
    http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.207


I was expecting something to happen here? Where I could enter commands I see in the doc.

1 post - 1 participant

Read full topic

Pixhawk connection issue with I2C plugged in

$
0
0

hi friends,

I have a strange issue with the Pixhawk 2.4.8

the Pixhawk board gets detected by the Win7 system and also by the Mission Planner when connected via the USB port.

but whenever I plug anything into the I2C port ( GPS / I2C Extender etc.) the Win7 machine gives error connecting to the Pixhawk board.

the USB gives a “Unknown Device” error and the Pixhawk board fails to get detected by the system.

what is causing this?

1 post - 1 participant

Read full topic

VTOL GPS issue

$
0
0

Hello everybody,
I have a pixhawk 1 which was installed on a quad crashed into water. I made the drying maintenance and I was able to upload the px4 1.10 into it. The mag , barometer, gyro and accelerometer all works perfectly except that I couldn’t power it from the power port, the ACT led doesn’t blink and the gps couldn’t be read from any of the serial ports. My plan is to use it on a VTOL quadplane and only for the Vtakeoff and Vlanding and make the transistion. My little question is if there is a solution for the interfaces problem, But the big question is if I can use it as is without gps on VTOL without problems?( I don’t want any of the gps based modes.)
Best regards for all.

1 post - 1 participant

Read full topic

Viewing all 871 articles
Browse latest View live