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
bi-copter settings wierdness
- LuisFCorreia
- Posts: 32
- Joined: Sat Oct 01, 2011 7:04 pm
- Location: Portugal
- Contact:
- LuisFCorreia
- Posts: 32
- Joined: Sat Oct 01, 2011 7:04 pm
- Location: Portugal
- Contact:
Re: bi-copter settings wierdness
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
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
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: bi-copter settings wierdness
Hi,
In your code, you didn't desactivate the receiver ISR (like Spektrum code does)
It's maybe on of the reason of this.
In your code, you didn't desactivate the receiver ISR (like Spektrum code does)
It's maybe on of the reason of this.