FC v2 Collision prevention issue with voxl 2
-
Can you see if you are using the MO169 or the MO178?
@Sean-Hickey I am using M0178
-
@Sean-Hickey I am using M0178
I was able to identify the issue.
mpc_pos_mode - acceleration based doesn't call Collision Prevention in any of the newest PX4 builds..
You need to use mpc_pos_mode - Simple Position Control (0) or mpc_pos_mode - smooth position control (3).
I was able to test this on a similar setup, and confirmed that collision prevention only worked with the mpc_pos_mode indicated above, and notably did not with mpc_pos_mode acceleration.
-
I was able to identify the issue.
mpc_pos_mode - acceleration based doesn't call Collision Prevention in any of the newest PX4 builds..
You need to use mpc_pos_mode - Simple Position Control (0) or mpc_pos_mode - smooth position control (3).
I was able to test this on a similar setup, and confirmed that collision prevention only worked with the mpc_pos_mode indicated above, and notably did not with mpc_pos_mode acceleration.
@Sean-Hickey that great, just making sure, did you use optical flow with FC?
Also could you let me know which branch you used, or the Px4 built file. i want to test it out in my setup.
-
@Sean-Hickey that great, just making sure, did you use optical flow with FC?
Also could you let me know which branch you used, or the Px4 built file. i want to test it out in my setup.
I used VIO with FC, but the path from obstacle detection to Collision Prevention is unchanged between the 2 modes.
I used the mainline ModalAI PX4 SDK branch. I can share the built px4 deb build with you if that's helpful, but I would try changing the mpc_pos_mode parameter first on your current build to see if that fixes your issue.
-
I used VIO with FC, but the path from obstacle detection to Collision Prevention is unchanged between the 2 modes.
I used the mainline ModalAI PX4 SDK branch. I can share the built px4 deb build with you if that's helpful, but I would try changing the mpc_pos_mode parameter first on your current build to see if that fixes your issue.
@Sean-Hickey
I already checked with changing the MPC_POS_MODE, did not work.Could you share the file, I would like to test it out.
-
@Sean-Hickey
I already checked with changing the MPC_POS_MODE, did not work.Could you share the file, I would like to test it out.
I attached the link above, I am using parameters:
MPC_POS_MODE: Simple position control
CP_DIST 1.5 m
CP_DELAY 0.4 s
CP_GUIDE_ANG : 0 deg
CP_GO_NO_DATA: Enabled -
@Sean-Hickey
I already checked with changing the MPC_POS_MODE, did not work.Could you share the file, I would like to test it out.
If this doesn't work, on the mavlink console (after testing the collision prevention) call:
listener obstacle_distance_fused 1
listener collision_constraints 1and let me know the results.
-
If this doesn't work, on the mavlink console (after testing the collision prevention) call:
listener obstacle_distance_fused 1
listener collision_constraints 1and let me know the results.
@Sean-Hickey
sorry to disturb you again .
I am not able to flash with the deb file, could you please share the.px4file -
If this doesn't work, on the mavlink console (after testing the collision prevention) call:
listener obstacle_distance_fused 1
listener collision_constraints 1and let me know the results.
I tested with this firmware
modalai_fc-v2_1.14.0-2.0.133.px4from (http://voxl-packages.modalai.com/dists/fc-v2/sdk-1.6/) and it worked, but there is no uavcan thats the only problem.I checked with the parameters you mentioned.
When i reduce the cp_dist it stops working but with 1.5 m it is working.
-
I tested with this firmware
modalai_fc-v2_1.14.0-2.0.133.px4from (http://voxl-packages.modalai.com/dists/fc-v2/sdk-1.6/) and it worked, but there is no uavcan thats the only problem.I checked with the parameters you mentioned.
When i reduce the cp_dist it stops working but with 1.5 m it is working.
@Jetson-Nano Can you rebuild to add UAVCAN? The code is here: https://github.com/modalai/px4-firmware/tree/v1.14.0-2.0.133-dev
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login