Hi, i am trying to develop a wireless computer interface to control the quadrotor, rather than using the RC Tx.

Firstly, Labview will be used to create the interface. I am using the VISA serial port as it detects the xbee pro from USB port, also allows us to set the baud rate,data bits and etc. (Picture attached).

Secondly, the buttons are set to send a packet of data to the APM wirelessly. For example, if i press forward, the button will generate a string "111" to the APM and the APM is set to listen to the interface and react accordingly to the packet received. There are also Pitch, Roll & Throttle indicator created in the interface and constantly listening to the APM's pitch, roll & trottle data.

Ok, well said enough right? but i have problems! I am new to quadrotor and arduino.

(not to say i don't know how to program, but i am used to deal with PICs and i don't know which of the arduino port is the input for the x,y & z for the gyros and also which port to write to give command and moreover i don't know anything about the quadrotor stabilize mode algorithm)

therefore, i don't have the ability to program a quadrotor stabilize mode which follows the input of the throttle given by the interface.

So, I came out with 2 plans

1st is to use and modify the arducopter source code and then load it.(but the source code is way too complicated for me to understand)

2nd is to write a simply code which only enable the quadrotor to stabilize and listening to the command gave. 

Something like :

void setup() {

Serial.begin(57600);  
}
void loop() {
stabilize mode algorithm;
Serial.write();//
Serial.read(); // with interrupt
if forward is pressed, set pitch to lower.
}

But whichever plan i use, i am going to need help as in providing me the port information and algorithm in stabilizing the quadrotor.

Sincerely hope that some1 might give advice on which plan is more likely to works and help me out in showing links, or give me some related code example to reference.

Thank you for spending time and reading it.

Keep in touch,

Clement

interface.png

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity