Autonomous flight

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

Autonomous flight

Post by snow-man-01 »

Hello,

I hope that you can help me with the problem.

For an autonomous flight with my quadrocopter I want to change the multiwii code. I want to find the values for pitch, roll, yaw and throttle in the code. These angles will changed by using the transmitter+receiver. But I do not find these angle in the code to change them. Can anybody tell me where these values in the code are?

gregd72002
Posts: 103
Joined: Fri Dec 12, 2014 5:16 pm

Re: Autonomous flight

Post by gregd72002 »

one way of finding them is through Protocol.cpp.
There will be a message for RC (MSP_SET_RAW_RC), you can trace it down to the right places.

Normally you would want to use MSP for changing pitch,roll, yaw, throttle...

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

Re: Autonomous flight

Post by snow-man-01 »

I do not want to work with the raw data of the RC. I only want to change four values: pitch, roll, yaw and throttle. It means I do not want to change the values with the transmitter/receiver but I want to change them manually in the code.

gregd72002
Posts: 103
Joined: Fri Dec 12, 2014 5:16 pm

Re: Autonomous flight

Post by gregd72002 »

Not sure if I get you. You can change RC data directly in the code. I would modify Protocol.cpp and overwrite serialCom function and set rcSerial and rcSerialCount.
3 lines change is all you need to change them in the code.

Post Reply