Page 1 of 1

bi-copter settings wierdness

Posted: Sun Nov 06, 2011 5:54 pm
by LuisFCorreia
Hi,

Alex, please consider the following scenario:

In the current SVN revision (339), change config as follows:

#define BI
#define BTSERIAL

//#define FAILSAFE
//#define VBAT
//#define LCD_CONF

In Serial.pde, add a section in the RX loop, providing a very static set of values, each time we receive the 'token' from bluetooth

case 'K': //receive RC data from Bluetooth Serial adapter as a remote
rcData[THROTTLE] = 1234;
rcData[ROLL] = 1345;
rcData[PITCH] = 1456;
rcData[YAW] = 1567;
rcData[AUX1] = 1678;
break;

Upload it to Arduino and open up GUI.

Set all PID values to 0 (zero) in order to disable any and all corrections and WRITE the values into the EEPROM

You will see that the 4 values that I'm supplying via the serial port appear on the top right side of the screen and keep still but the MultiWii code is freaking out the values, swinging them from 1400 to 1600, in an apparent random fashion.

This is the kind of behaviour I'm seeing with MultiWii all this time.
Things changing without any reason whatsoever.

What now, is the radio system relevant to this behaviour? I really don't think so.

Luis Correia

Re: bi-copter settings wierdness

Posted: Sun Nov 06, 2011 6:11 pm
by LuisFCorreia
Well,

it seems that every time I upload a new program to Arduino, new PID values get to be uploaded as well....

oh well, must investigate further

Re: bi-copter settings wierdness

Posted: Mon Nov 07, 2011 12:06 am
by Alexinparis
Hi,

In your code, you didn't desactivate the receiver ISR (like Spektrum code does)
It's maybe on of the reason of this.