Closed vinhk closed 6 years ago
https://pixhawk.org/dev/px4flow is outdated and I guess we need to remove that page or link it correctly. We are sorry for that. Please make sure you have the following things working correctly
SENS_FLOW_ROT
needs to be 270 degrees
if you use master.LPE_FUSION
?EKF2_AID_MASK
to use optical flow?EKF2_HGT_MODE
to use the range finder?And please provide a log of a flight.
Have a look at this guide
@ChristophTobler Lets move everything into Devguide and update the Optical Flow page to reflect latest LPE params.
https://dev.px4.io/optical-flow-outdoors.html is outdated in terms of LPE params.
@mhkabir I agree. I guess it is also a bit confusing that we have two pages in the dev guide: https://dev.px4.io/flow_lidar_setup.html, https://dev.px4.io/optical-flow-outdoors.html. I think we should just have one page for optical flow with all estimators on there. I'll create one with EKF2 (and maybe INAV with the warning that it is outdated). Can you then add the LPE part?
Based on the suggestions, I have reset all params and recalibrate the Pixhawk in QGC:
[x] SENS_FLOW_ROT
needs to be 270
Complete
[x] Flow output: fwd +y, rev -y, right -x, left +x
M1:OPTICAL_FLOW_RAD.integrated_y
, M1:OPTICAL_FLOW_RAD.integrated_x
, and M1:OPTICAL_FLOW_RAD.distance
Complete
https://www.youtube.com/watch?v=11pUv1R0G-M&feature=youtu.be
[ ] Is your quad tuned correctly? Everything has just been calibrate. For PID tuning? Not yet
[x] Does the distance sensor work? Yes Complete
[ ] Does altitude hold work? Should I test altitude hold first or position hold?
[x] What is your flow quality? Around 240 and 250 Complete
[ ] Is optical flow enabled in LPE_FUSION
?
I am unable to see LPE_FUSION in QGC parameters
[ ] If you use EKF2, have you set EKF2_AID_MASK to use optical flow?
[ ] If you use EKF2, have you set EKF2_HGT_MODE to use the range finder? I am going to use LPE this time as documentation suggests that it is well tested indoors.
Is LPE still the recommended position estimator to be used with PX4FLOW? Is there a list of the LPE parameters to be used with PX4FLOW?
@jgoppert @mhkabir @ChristophTobler , what are your suggestions?
You have to tune (PID) your quad obviously. Otherwise it won't fly (well) at all. Have you ever flown it manually?
@ChristophTobler, I have flown it many times. We had drift issues in manual flights.
@vinhk please provide a log here: http://logs.uaventure.com/
Yes you should first try altitude hold.
@tomatac Yes, LPE is still the recommended one. @mhkabir is updating the parameters here https://github.com/PX4/Devguide/pull/98
@ChristophTobler Here is what I'll do:
1st flight: Manual flight and control the quad using only the RC Transmitter. Log it 2nd flight: Altitude hold mode flight and log it as well.
Also send a log for position control please; I want to see what goes wrong.
I'll do that. Thanks 3rd flight. Position Control mode flight and log
@vinhk I just realized that your pixhawk is running ekf2 (default). That's also why you can't see LPE_FUSION
but all EKF2_*
parameters, right?
@mhkabir I guess we need to mention that in the dev guide (flow related, but also generally).
@ChristophTobler, I do see all of EK2_* parameters.
@mhkabir @ChristophTobler Even after I change it to LPE, there is no LPE_FUSION in QGC.
@vinhk yes. LPE is not supported on a Pixhawk
It is usable just fine. You need to use the px4fmu-v2_lpe target, because we do not have enough flash for both estimators on the Pixhawk with old STM32.
@mhkabir does that mean that I need to flash the px4 firmware masters from GitHub or from QGC masters?
@vinhk you would need to flash it yourself using the source code from Github. Or you could just use EKF2
@ChristophTobler I'll flashed it using Github this time. Please give me all the parameters to enable in QGC so I can test it properly for EKF2 to work with Pixhawk using Px4Flow.
@vinhk You flashed it using make px4fmu-v2_lpe
(LPE) or make px4fmu-v2_default
(EKF2)? For EKF2 you need to set the two parameters I mentioned https://github.com/PX4/Firmware/issues/6864#issuecomment-288001037
@ChristophTobler Previously, I used QGC. Instead of using the default firmware, I used Masters from the list of Px4 firmware. Therefore, I did not use either of those 2 commands. I did not do custom flashed from QGC.
@mhkabir Please give me all parameters I need to set in QGC if I flashed the firmware using make px4fmu-v2_lpe
as well. Beside https://dev.px4.io/advanced-switching_state_estimators.html, https://dev.px4.io/flow_lidar_setup.html,
px4fmu-v2_lpe is in the zip file on the github release page.
@jgoppert I just flashed Px4 firmware masters from Github and use make px4fmu-v2_lpe upload
. Now, I can see LPE_FUSION 247
on QGC. I also set SYS_MC_EST_GROUP
to local_position_estimator, attitude_estimator_q
on QGC. What is the next step?
@jgoppert @mhkabir @ChristophTobler is LPE_FUSION 247
correct to use PX4Flow without Lidar only sonar that came with Px4Flow indoors? Based on this: https://github.com/PX4/Firmware/blob/master/src/modules/local_position_estimator/params.c, I'll set LPE_FUSION
to 114
as there is no GPS and Not using barometer where bits are as follow 0111 0010 . Could you guys verify this for me?
LPE_FUSION should be 162
On 23-Mar-2017 9:48 PM, "Vinh K" notifications@github.com wrote:
is LPE_FUSION 247 correct to use PX4Flow without Lidar only sonar that came with Px4Flow indoors?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/Firmware/issues/6864#issuecomment-288774015, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTNrDc1OsdHGFoRwz5BQPASEHe6oBdyks5roptdgaJpZM4MjBPy .
@mhkabir I'll do that.
@mhkabir 162: 1010 0010 OFF bit 0 fuse GPS, requires GPS for alt. init ON bit 1 fuse optical flow OFF bit 2 fuse vision position OFF bit 3 fuse vision yaw OFF bit 4 fuse land detector ON bit 5 pub agl as lpos down OFF bit 6 flow gyro compensation ON bit 7 fuse baro
Why is the flow gyro compensation OFF? Do you know if there is any document or post that explains the best practices on setting these parameters?
@tomatac You have that opposite. 1010 0010. It start from: GPS, Optical Flow, Vision Position, ... etc.
In this case flow gyro is on based on the 1010 0010
Did you try using QGC?
Thank you @dagar! I will try using the QGC now that I know that we need a different firmware file (px4fmu-v2_lpe in the zip file on the github). The question remains: what are best practices on setting these parameters for position estimation using only PX4FLOW and no GPS?
If the Default is: 247: 1111 0111 ON bit 0 fuse GPS, requires GPS for alt. init ON bit 1 fuse optical flow ON bit 2 fuse vision position OFF bit 3 fuse vision yaw ON bit 4 fuse land detector ON bit 5 pub agl as lpos down ON bit 6 flow gyro compensation ON bit 7 fuse baro
Are these the best settings: 242: 1111 0010 ? OFF bit 0 fuse GPS, requires GPS for alt. init ON bit 1 fuse optical flow OFF bit 2 fuse vision position (?) OFF bit 3 fuse vision yaw (?) ON bit 4 fuse land detector (?) ON bit 5 pub agl as lpos down ON bit 6 flow gyro compensation ON bit 7 fuse baro (?)
I am not sure on: fuse vision position, fuse vision yaw, fuse land detector, fuse baro.
Does anybody have a recommendation based on flight experience using only PX4FLOW and no GPS?
I use EKF2 and I Set SENS_FLOW_ROT to 270 degrees ,EKF2_AID_MASK to use optical flow ,EKF2_HGT_MODE to use the range finder,and the Alttitude and Position mode is working well, but I use make px4fmu-v2_lpe upload,i can't make the alttitude mode hold ,what's the problem with LPE?
Hey, this issue has been closed because the label status/STALE
is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)
Dear all,
I am working on indoor small drone where GPS is not allowed. I have followed the tutorials on Px4 documentations in connecting the PX4Flow to Pixhawk. Here is what I have done:
I noticed that the SENS_FLOW_ROT is set to 270 degrees in QGC but the documentation says make it 0 degrees based on this:
So I set the SENS_FLOW_ROT to 0 degrees using the documentation
I set the SYS_MC_EST_GROUP to EKF2 and the POS_CTRL mode was bad. It did not stay hovering.
I would like to tried LPE with the community suggestion. I did not have stable hover before, but since I have just flashed these codes for Pixhawk and Px4Flow using masters I feel that I am doing that part correct. @andre-nguyen @ChristophTobler suggested me to check for orientation. Could someone assist me with getting this setup to work using LPE in POS_CTRL mode. I would really appreciate if I could get a stable hover like so: https://www.youtube.com/watch?v=CccoyyX-xtE
Thank you