Collision advoidance

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
snow-man-01
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Collision advoidance

Post by snow-man-01 »

Hello,

for the Collision advoidance I want to change roll, pitch, yaw and throttle in the Multiwii code manually. Can anyone tell me where I can find the values for roll, pitch, yaw and throttle?

thank you

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Collision advoidance

Post by PatrikE »

You need to insert your code before the PID regulator.
https://github.com/multiwii/multiwii-fi ... .cpp#L1467

The paramerers you should manipulate is.
rcCommand[PITCH] += pitch_advoidance_Command
rcCommand[ROLL] += roll_advoidance_Command
rcCommand[THROTTLE] += hrottle_advoidance_Command
rcCommand[YAW] += yaw_advoidance_Command

snow-man-01
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Re: Collision advoidance

Post by snow-man-01 »

Thank u

I inserted the parameters befor the PID regulator and saw the following reactions by the quadcopter:

code-example 1:
rcCommand[THROTTLE] = 1200;

//**** PITCH & ROLL & YAW PID ****

reaction:
When I increase the throttle I see that from 1100 the throttle be constant on 1200. But under 1100 the throttle does not go to 1200 (only if I set the throttle from 1100).
My expactation was that throttle remains on 1200 - regardless of the throttle stick.



code-example 2:
rcCommand[ROLL] = 1200;

//**** PITCH & ROLL & YAW PID ****

reaction:
When I increase the throttle from >1100 all motors spin very fast to 2000.
My expactation was that only roll remains on 1200 and nothing else changes.

Can you tell me please why my expactiation differ from the results?

User avatar
waqarrashid33
Posts: 9
Joined: Mon May 23, 2016 1:40 pm
Location: Kiel, Germany

Re: Collision advoidance

Post by waqarrashid33 »

I also want to make a collision avoidance system which uses stereo vision to detect obstacles.. Currently I have no Idea what do I need to change in the code.. It would be nice if we can collaborate with each other somehow..

Zviki
Posts: 25
Joined: Sat May 28, 2016 7:39 pm

Post by Zviki »

What's wrong with sonar sensors?

Sent from my SM-N910C using Tapatalk

Post Reply