[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 384: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - PX4FLOW & position hold

PX4FLOW & position hold

Info and discussion about the autonomous Micro FC, suitable for nanos, micros and mini multirotors

PX4FLOW & position hold

Postby Matthew » Sun Aug 16, 2015 9:55 pm

Hi

I'm looking for a way to achieve precise position hold with M4 controller and without GPS signal (indoor). I figured the best bet would be PX4FLOW sensor. But is it still supported in AQ firmware? How much work would it be to achieve a good result? I do have some electronics skills but not as much programing experience.

The second thing I'd like to achieve is hover and position hold without radio in the system. Possibly drone would be placed anywhere in space, user would push a button, motors would start to work and M4 would try to hold the position given by PX4FLOW sensor. Is this achievable? To be frank over 200 files of AQ firmware looks a bit scary and I don't know where to start.
Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Re: PX4FLOW & position hold

Postby kinderkram » Mon Aug 17, 2015 11:28 am

Bill and Peter have played with PX4flow some time ago with AQ6 and M4:




And there have been tests with LIDAR for position hold and obstacle avoidance:

kinderkram
 
Posts: 2911
Joined: Fri Jun 22, 2012 7:47 am

Re: PX4FLOW & position hold

Postby Matthew » Mon Aug 17, 2015 3:17 pm

Thank you for the answer :) I have seen the first video along with Bill's topic on the forum. The results are great but is there any instruction how to achieve that? Is connecting M4 USART port with PX4FLOW USART port enough? Which firmware version should I download?
Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Re: PX4FLOW & position hold

Postby sandmen » Mon Aug 17, 2015 3:26 pm

sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: PX4FLOW & position hold

Postby Matthew » Mon Aug 17, 2015 5:11 pm

Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Re: PX4FLOW & position hold

Postby sandmen » Thu Aug 20, 2015 6:22 pm

Only some lines in AQ....
Need to check that.
Otherwise, on Px4Flow, Bill's changes are already in the official FW.
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: PX4FLOW & position hold

Postby Matthew » Thu Jan 21, 2016 2:17 pm

Hi

I guess there is no need to create new topic. My quad finally flies. It turned out that PX4FLOW really works out of the box. You just have to connect UART.

Unfortunatelly I experience a significant, horizontal drift in position hold. It has a rather constant speed of 20 cm/s. All test I do are indoors, and every time, after about 5 seconds I have to land the quad to prevent it from crashing on the wall. Please help me resolve that problem.

First of all I couldn't find any information on how to calculate UKF_FLOW_ROT parameter. My AQ is fliped around Y axis, while PX4FLOW is mounted like in this picture https://pixhawk.org/_media/modules/px4f ... tok=8dfdcf with front of the quad on top of the picture. I tried all 4 angles (0, 90, 180 and -90) but there is a drift every time. Once I connect AQ to QGC, move the drone above the ground and observe position on the screen it seems to don't change logically. It only works well if I hold the quad fery still.

It would probably be much easier to diagnose the problem once wireless telemetry would be working. I have a bluetooth module but UART on AQ is connected to FLOW sensor. I found an information that there is a second UART but if I am correct it's on the same pins as PWM output which is used to connect KISS esc. GPS module is not used in my setup so theoretically I could desolder the module and use it's UART. Would that work? What changes to the code shall I make?

Before tests I performed tare leveling, IMU calibration without temperature calibration and changed PID values for tilt and YAW.
Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Re: PX4FLOW & position hold

Postby Matthew » Sun Jan 24, 2016 7:17 pm

Ok I made a progress in the subject of telemetry over bluetooth. I discovered that external esc can be connected through ports 1 - 4. So I switched connections from ports 5 - 9. They work like a charm. By doing so UART6 become accesible. I soldered bluetooth module but it doesn't seems to work. The problem is very similar to the one described in this subject viewtopic.php?f=33&t=4389 . I have already tried switching TX <-> RX cables and tried both COM ports in QGC.

In board_m4_r6.h I found the line "//#define COMM_PORT3 USART6" and uncommented it. This change alone didn't make bluetooth work. Are there any other changes neccesary to enable UART6? Or is there some other solution?
Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Re: PX4FLOW & position hold

Postby Max » Sun Jan 24, 2016 10:23 pm

Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: PX4FLOW & position hold

Postby Matthew » Sun Jan 24, 2016 11:39 pm

Matthew
 
Posts: 14
Joined: Sun Aug 16, 2015 9:10 pm

Next

Return to AutoQuad M4 Micro Controller

Who is online

Users browsing this forum: No registered users and 12 guests

cron