Page 1 of 1

MSP_SET_RAW_RC not working

Posted: Mon Dec 21, 2015 8:02 am
by anshulsanam
Hello everyone,

I am currently working on a quadcopter about the size of your palm. At first I made my own code, and it worked for 2 seconds before utterly failing. Thus, I have resorted to using multiwii. Eventually the quadcopter will be controlled via bluetooth, but right now I am communicating with it through MSP using a cable. I am using this python package -> https://github.com/alduxvm/pyMultiWii with the test-send.py program
I am able to query the current rc values, and the IMU values. The problem arises when trying to send commands through MSP_SET_RAW_RC.

Here is the link to view my current multiwii code, perhaps I haven't configured it correctly or something --> https://drive.google.com/folderview?id= ... sp=sharing

Here's a link to download the same code --> https://www.dropbox.com/sh/uv4158ahjtxp ... MLlca?dl=0


I would really appreciate it if someone can tell me where exactly I'm going wrong.

Re: MSP_SET_RAW_RC not working

Posted: Mon Dec 21, 2015 11:39 am
by PatrikE
Have not looked any closer at your code but...
You must send MSP_SET_RAW_RC repeatedly with a ~20hz timer.

Re: MSP_SET_RAW_RC not working

Posted: Mon Dec 21, 2015 8:44 pm
by anshulsanam
I've tried sending it every 0.05 seconds and even every 0.15 seconds. It doesn't work.

Re: MSP_SET_RAW_RC not working

Posted: Sun Dec 27, 2015 12:47 am
by anshulsanam
Does anyone have any idea what's wrong?

Re: MSP_SET_RAW_RC not working

Posted: Tue Dec 29, 2015 1:09 pm
by PatrikE
I have played around a little before to make a GroundStation/Variometer.
Have a MSP Rc transmitter built in to it.
It's a Arduino project but you might get some Idés from it.

Re: MSP_SET_RAW_RC not working

Posted: Wed Dec 30, 2015 4:49 am
by anshulsanam
To use MSP_SET_RAW_RC do you need to have a transmitter? So far I've been trying to get it working without an actual RC transmitter.

Re: MSP_SET_RAW_RC not working

Posted: Wed Dec 30, 2015 11:38 am
by PatrikE
No you can control entirely with MSP_SET_RAW_RC .
Rc gets overridden by MSP_SET_RAW_RC if the channel value is >0.

In fact you can run RC in parallel with msp.
Msp will act as a Dual command master.
ex. handle the flight with RC and AUX with msp.
Send msp channels as zero if you want RC to control the channels.
Send Valid 1000 -2000 to take over with msp.

Ez-Gui have a built in feature for this.