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

Collision advoidance

Postby snow-man-01 » Wed Jul 27, 2016 3:05 pm

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
snow-man-01
 
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Re: Collision advoidance

Postby PatrikE » Wed Jul 27, 2016 10:49 pm

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
PatrikE
 
Posts: 1948
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden

Re: Collision advoidance

Postby snow-man-01 » Thu Jul 28, 2016 9:43 am

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?
snow-man-01
 
Posts: 18
Joined: Mon Jul 18, 2016 9:50 am

Re: Collision advoidance

Postby waqarrashid33 » Mon Aug 01, 2016 9:44 pm

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..
User avatar
waqarrashid33
 
Posts: 9
Joined: Mon May 23, 2016 1:40 pm
Location: Kiel, Germany

Postby Zviki » Sat Aug 20, 2016 1:25 am

What's wrong with sonar sensors?

Sent from my SM-N910C using Tapatalk
Zviki
 
Posts: 25
Joined: Sat May 28, 2016 7:39 pm


Return to Software development

Who is online

Users browsing this forum: No registered users and 2 guests

cron