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
Collision advoidance
Re: Collision advoidance
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
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
-
- Posts: 18
- Joined: Mon Jul 18, 2016 9:50 am
Re: Collision advoidance
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?
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?
- waqarrashid33
- Posts: 9
- Joined: Mon May 23, 2016 1:40 pm
- Location: Kiel, Germany
Re: Collision advoidance
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..