Px4 Testing

I am starting this discussion to post information for  testing the Px4 platform.

Most of the discussion is currently in the APM vs Px4 thread. ArduCopter on the Px4 is a work in progressand has made great progress. I have Arducopter on a Px4 Fmu board hovering now and I am very glad to see the code base integrated into the Stm32 platorm. Ardupilot represents many hours testing and refinement , many thanks to Andrew Tridgell ,Randy Mackay  and the other developers as well as Gary Mcray for the documentation  on the Wiki

The Px4 can support a Quad with 4 Motors using only the Px4_FMu board with some of its Usart pins defined as Pwm outputs or using the Px4_Io board to supply Pwm motor (servo) outputs. The configuration with the Io board may work better at the moment , the Fmu only has a number of issues to get booted up  configured and running. It may be that all the testing at the moment is being done with boards that use the Px4_Io.

The Px4  usb is software driven not a ftdi chip like the Apm and has given problems but is working now . When the Stm32 bootloader starts it creates a Usb port with its own Id and sets up a DFU device for loading. If no bootloader request is received it jumps to the code startup and creates a usb serial port with a different USB Id for a mavlink connection. Windows drivers have to deal with the Usb connection and connect the appropiate driver.

I think the Px4 vs Apm  answer is that it is still early in the Px4 development but shows great promise.

 

 

 

 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • yes mine worked too on UART5 with arduplane. i had been trying to connect via UART2 and USB for last 60 days without any luck. can u please send the link for the startup script to be loaded on the SD card so that the PX4 communicates via serial port instead of USB.

  • It is good to have a Ftdi serial connection to be able to see the startup msgs on the console.   You can also avoid the Usb and move the mavlink connection to serial port instead of Usb.   It would be good to have a startup  script that can be loaded on to sd card that will start px4  using serial port instead of Usb.  I will try to test and post  one that people can load on sd.

    When this was in the first beta versions  their was no usb and  serial was used.   It will be interesting to see if arduplane is ok with serial connection.

  • it is the PX4 driver that causes problem. the best way is to use a PC which has very few com ports assigned to various devices. like a computer which has a freshly loaded windows. despite that my PX4 does not connects to mission planner when i load arduplane. i cannot find a reason. arducopter loads and connects fine with 3DR. but no luck with arduplane.

  • Hello,

      After some very busy weeks, I´ve restarted my px4 work. I´ve flashed now the px4-apm firm with the qupgrade v0.3. But I can´t connect it, via USB, with the Apmplanner in it last version, tha apm say to me that it doesn´t receive any hearthbeat. Any idea please? 

    Thanks in advance

  • Any luck on how to measure current and voltage? it's a necessary feature.

  • hi martin, i am facing the exactly same problem. i can connect to mavlink with USB/3DR with arducopter. i cannot connect with mavlink when i upload arduplane. it is definetly the driver problem. i am sure it would be sorted out soon.

  • @Martin, i strongly believe that PX4 driver is more compatible with windows XP than vista. but eventully the problem will be resolved. i am facing a very wiered problem. when i upload arducopter i can connect mavlink to mission planner. but when i upload arduplane i cannot connect mavlink. i cannot find any solution. i cannot even blame the PX4 driver. with arduplane 2.70 i was able to connect arduplane vis mavlink.

  • @martin, try another computer which has very few com ports in use. mission planner now has a reliable USB driver for PX4. it worked for me. i tried another computer and it worked. actually PX4 has a software based USB to serial converter and that is the reason for all these problems.

  • Hi gary, no luck with the new driver. still same. i get mavlink data for arducopter but for arduplane. with 3DR radio also same status. arducopter sends data but arduplane does not.;

  • @Martin, i can upload all the firmwares to PX4 using mission planner. i cannot connect mavlink to mission planner when i upload arduplane. i can connect to mission planner when i upload arducopter. this sounds very strange but is happening.

This reply was deleted.

Activity

DIY Robocars via Twitter
Videos from the ICRA autonomous racing workshop are now available: https://linklab-uva.github.io/icra-autonomous-racing/
Thursday
DIY Robocars via Twitter
RT @SmallpixelCar: Prepared race track for Warm Spring Raceways @wsraceways and looking forward to test my new car at RAMS RC @ramsaicar fa…
Jun 6
DIY Robocars via Twitter
RT @f1tenth: Trying out some nasty blocking maneuvers 🏎️🤖 #f1tenth #autonomousracing https://t.co/nMTstsaogM
Jun 5
DIY Robocars via Twitter
May 27
DIY Robocars via Twitter
RT @araffin2: I will talk this Saturday from 18:00 to 19:00 Paris time for the @diyrobocars community about learning to race in hours using…
May 27
DIY Robocars via Twitter
RT @a1k0n: Luckily the infeasible hairpin problem was easily reproducible in simulation and I could test the fix before bringing the car ba…
May 26
DIY Robocars via Twitter
RT @a1k0n: Another problem was that I was over-constraining the car's allowed accelerations, so it didn't think it could turn as tight as i…
May 26
DIY Robocars via Twitter
RT @a1k0n: Breaking the map up into two halves worked, but I had to be more careful about separating the inner track from outer. There's se…
May 26
DIY Robocars via Twitter
RT @a1k0n: Here's a datalog for my fastest lap of the day. Lap timer is tiny window lower-left. https://t.co/myrlWWrKUY
May 26
DIY Robocars via Twitter
May 26
DIY Robocars via Twitter
RT @a1k0n: Here was my car's POV. Man this track is confusing in first-person! After the incident my camera was all scuffed up and I was af…
May 23
DIY Robocars via Twitter
RT @circuitlaunch: Loved seeing so many familiar (masked) faces at Circuit Launch today for our first in person @diyrobocars in over a year…
May 22
DIY Robocars via Twitter
RT @circuitlaunch: Last but not least, mystery guest @BostonDynamics Spot took to the track @diyrobocars He enjoyed the #brazilianbbq too 😂…
May 22
DIY Robocars via Twitter
RT @SmallpixelCar: Today’s race @circuitlaunch for @diyrobocars with @a1k0n Was busy in the morning and did not get a chance to tune camera…
May 22
DIY Robocars via Twitter
RT @a1k0n: This was epic. My car was barely working this morning, had to make a lot of changes and extremely dirty hacks. Post-race analysi…
May 22
DIY Robocars via Twitter
DIY Robocars @ Circuit Launch, 3/7/2020 https://twitch.tv/diyrobocars
May 22
More…