miradzhani / mw-wingui

Automatically exported from code.google.com/p/mw-wingui
0 stars 0 forks source link

Unhandeled Exception when reading settings #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When reading the settings from the copter an
unhandeled exception appears (Value out of Range,
must be between maximum and minimum. The value causing
this error is -252).

There is no parameter with a -252 value in my config

Original issue reported on code.google.com by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 12:42

GoogleCodeExporter commented 9 years ago
Please send me your multiwii config file and a saved settings from MUltiWiiConf 
to reproduce....

Original comment by eosba...@gmail.com on 18 Nov 2013 at 1:31

GoogleCodeExporter commented 9 years ago
This is right?

Original comment by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 1:45

Attachments:

GoogleCodeExporter commented 9 years ago
Now exeption appears when trying to connect ....

Original comment by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 1:50

Attachments:

GoogleCodeExporter commented 9 years ago
Yepp, plus please send me you config.h

Original comment by eosba...@gmail.com on 18 Nov 2013 at 1:55

GoogleCodeExporter commented 9 years ago
Connection when Flight Deck tab is shown works,
when connectiong with Flight Tuning or RC Config
tab the exception appears.

Original comment by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 1:56

GoogleCodeExporter commented 9 years ago
config.h

Original comment by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 2:09

Attachments:

GoogleCodeExporter commented 9 years ago
Maybe this makes it easier .... PID-Profile,
created with EZ-GUI .....

Original comment by Ralf.Wal...@googlemail.com on 18 Nov 2013 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
I think I found the problem, Some of the unused servo setting variables are not 
initialized and give back gibberish...

Original comment by eosba...@gmail.com on 20 Nov 2013 at 9:12

GoogleCodeExporter commented 9 years ago
Same as pre 1, sorry .....

Original comment by Ralf.Wal...@googlemail.com on 21 Nov 2013 at 2:53

Attachments:

GoogleCodeExporter commented 9 years ago
BTW: The values in the window behind the error message are
loaded from the copter ... during the READ the error-message appears.

Original comment by Ralf.Wal...@googlemail.com on 21 Nov 2013 at 4:38

GoogleCodeExporter commented 9 years ago
OK then... I put boundary checks on all servo values that comes from 
MSP_SERVO_CONF
It seems that with certain coptertypes (QUADX for example) the servo settings 
are remain uninitialized and MSP_SERVO_CONF will return random data.

Original comment by eosba...@gmail.com on 21 Nov 2013 at 4:55