Can't transmit params

Ground Stations and utilities for Windows, Linux, Android, & others

Can't transmit params

Postby GoFaster » Tue Aug 07, 2012 2:56 pm

I must be doing something fundamentally wrong. Trying to transmit my generated parameter file to a board with default settings without success. Same with both Windows and Linux QGC.

Connect via USB.
Existing parameters are visible in Parameters widget. 'Refresh' pulls parameters from board again, takes ~6 seconds.
'Load' params file. Click 'Transmit' and it says 'No values changed' and doesn't send anything. I even tried a test params file that only contains one single line consisting of '#define IMU_MAG_INCL -67.38' (without the quotes). Same thing.

Problem must be so simple that I am missing it completely.
Help...
GoFaster
 
Posts: 355
Joined: Tue Jul 03, 2012 1:20 pm
Location: Connecticut, USA

Re: Can't transmit params

Postby sandmen » Tue Aug 07, 2012 3:45 pm

Please send me or atach the para file.
Thanks
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Can't transmit params

Postby GoFaster » Tue Aug 07, 2012 3:50 pm

Here it the params file. Same problem when I tried to send a test params file with only one single line #define IMU_MAG_INCL -67.38
Tried on Linux, Win7 32-bit, Win7 64-bit.

Code: Select all
//  Dataset consists of 3 original Static logs and CornerUp Dynamic log

// http://magnetic-declination.com
#define IMU_MAG_INCL -67.38      // btown

// cal --rate
#define IMU_GYO_BIAS_X -1.334451321e+000
#define IMU_GYO_BIAS_Y -1.350113065e+000
#define IMU_GYO_BIAS_Z -1.327106746e+000
#define IMU_GYO_BIAS1_X +6.611512984e-005
#define IMU_GYO_BIAS1_Y +1.171200481e-005
#define IMU_GYO_BIAS1_Z +1.745687753e-004
#define IMU_GYO_BIAS2_X -2.099821006e-006
#define IMU_GYO_BIAS2_Y +8.245737062e-006
#define IMU_GYO_BIAS2_Z -7.022481471e-007
#define IMU_GYO_BIAS3_X +9.468476656e-009
#define IMU_GYO_BIAS3_Y +4.705026720e-008
#define IMU_GYO_BIAS3_Z +3.578294219e-008

// cal --acc
#define IMU_ACC_BIAS_X -1.641679700e+000
#define IMU_ACC_BIAS_Y -1.635233362e+000
#define IMU_ACC_BIAS_Z -1.662827057e+000
#define IMU_ACC_BIAS1_X +1.964459527e-006
#define IMU_ACC_BIAS1_Y -3.225809595e-005
#define IMU_ACC_BIAS1_Z +3.594522367e-005
#define IMU_ACC_BIAS2_X +5.614696595e-007
#define IMU_ACC_BIAS2_Y -1.547502803e-007
#define IMU_ACC_BIAS2_Z +3.834597152e-006
#define IMU_ACC_BIAS3_X -1.410959503e-008
#define IMU_ACC_BIAS3_Y -2.241138046e-008
#define IMU_ACC_BIAS3_Z +4.063536861e-009
#define IMU_ACC_SCAL_X +1.967781714e-002
#define IMU_ACC_SCAL_Y +1.966049873e-002
#define IMU_ACC_SCAL_Z +1.900451344e-002
#define IMU_ACC_SCAL1_X +9.914515748e-007
#define IMU_ACC_SCAL1_Y +3.971854397e-006
#define IMU_ACC_SCAL1_Z +1.790781062e-005
#define IMU_ACC_SCAL2_X -3.578973922e-008
#define IMU_ACC_SCAL2_Y -3.325947337e-008
#define IMU_ACC_SCAL2_Z +9.653548731e-008
#define IMU_ACC_SCAL3_X -3.836275219e-009
#define IMU_ACC_SCAL3_Y -3.579645296e-009
#define IMU_ACC_SCAL3_Z -2.198045810e-008
#define IMU_ACC_ALN_XY +7.807809895e-003
#define IMU_ACC_ALN_XZ +1.751835485e-003
#define IMU_ACC_ALN_YX +1.218913130e-002
#define IMU_ACC_ALN_YZ +3.490892943e-004
#define IMU_ACC_ALN_ZX -3.597132567e-004
#define IMU_ACC_ALN_ZY -2.337578864e-004

// cal --mag
#define IMU_MAG_BIAS_X -3.934549438e-002
#define IMU_MAG_BIAS_Y -3.007990479e-002
#define IMU_MAG_BIAS_Z +5.881897091e-002
#define IMU_MAG_BIAS1_X +1.413177023e-004
#define IMU_MAG_BIAS1_Y +9.254060337e-005
#define IMU_MAG_BIAS1_Z -1.801301751e-004
#define IMU_MAG_BIAS2_X -1.060724676e-007
#define IMU_MAG_BIAS2_Y -6.757975790e-007
#define IMU_MAG_BIAS2_Z -6.119219308e-007
#define IMU_MAG_BIAS3_X +1.798036801e-008
#define IMU_MAG_BIAS3_Y +3.327772974e-008
#define IMU_MAG_BIAS3_Z -1.125948783e-008
#define IMU_MAG_SCAL_X +2.115633514e-001
#define IMU_MAG_SCAL_Y +2.161514238e-001
#define IMU_MAG_SCAL_Z +2.004079420e-001
#define IMU_MAG_SCAL1_X -6.250059735e-004
#define IMU_MAG_SCAL1_Y -7.213224893e-004
#define IMU_MAG_SCAL1_Z -6.110599216e-004
#define IMU_MAG_SCAL2_X +7.757662723e-007
#define IMU_MAG_SCAL2_Y +6.330806851e-007
#define IMU_MAG_SCAL2_Z +5.185476995e-007
#define IMU_MAG_SCAL3_X -1.876626526e-007
#define IMU_MAG_SCAL3_Y -2.162536411e-008
#define IMU_MAG_SCAL3_Z -2.814277308e-008
#define IMU_MAG_ALGN_XY -1.166907408e-002
#define IMU_MAG_ALGN_XZ -2.185511702e-002
#define IMU_MAG_ALGN_YX -4.115551847e-002
#define IMU_MAG_ALGN_YZ -4.651107875e-003
#define IMU_MAG_ALGN_ZX -5.994213334e-002
#define IMU_MAG_ALGN_ZY +5.878729713e-003

#define IMU_MAG_INCL -6.737999725e+001      // derived

// sim3 --gyo
#define IMU_GYO_SCAL_X      +0.114663296745   //  0.000000999413 -0.000000633534
#define IMU_GYO_SCAL_Y      +0.118991185554   //  0.000000999850 +0.000001658195
#define IMU_GYO_SCAL_Z      +0.115135223568   //  0.000000999284 +0.000000075315
#define IMU_GYO_ALGN_XY      +0.007413473622   //  0.000999994628 -0.000000804721
#define IMU_GYO_ALGN_XZ      +0.000870827513   //  0.000999999905 -0.000000024864
#define IMU_GYO_ALGN_YX      +0.007782317994   //  0.000999991514 -0.000002387775
#define IMU_GYO_ALGN_YZ      -0.006732026336   //  0.000999998896 -0.000000936014
#define IMU_GYO_ALGN_ZX      +0.018238242890   //  0.000999985036 -0.000007213206
#define IMU_GYO_ALGN_ZY      -0.008322675237   //  0.000999994886 -0.000002472418

// sim3 --acc
#define IMU_ACC_BIAS_X      -1.641618942563   //  0.000000001000 -0.000000027448
#define IMU_ACC_BIAS_Y      -1.635524851755   //  0.000000001000 -0.000000028071
#define IMU_ACC_BIAS_Z      -1.662965580466   //  0.000000000998 +0.000000029339
#define IMU_ACC_SCAL_X      +0.019641932399   //  0.000000001000 -0.000000054567
#define IMU_ACC_SCAL_Y      +0.019698170288   //  0.000000001000 +0.000000046356
#define IMU_ACC_SCAL_Z      +0.019048324528   //  0.000000001000 +0.000000010692
#define IMU_ACC_ALN_XY      +0.008372195700   //  0.000099998996 -0.000000334311
#define IMU_ACC_ALN_XZ      +0.002000902937   //  0.000099996431 +0.000000604423
#define IMU_ACC_ALN_YX      +0.014175090723   //  0.000099995790 +0.000000247620
#define IMU_ACC_ALN_YZ      +0.000359046631   //  0.000099999914 +0.000000017750
#define IMU_ACC_ALN_ZX      -0.000349950226   //  0.000099999884 +0.000000019647
#define IMU_ACC_ALN_ZY      -0.000229273357   //  0.000099999965 +0.000000007517

// sim3 --gyo --acc
#define IMU_GYO_SCAL_X      +0.114645246972   //  0.000000998226 +0.000000034457
#define IMU_GYO_SCAL_Y      +0.119059473567   //  0.000000999634 +0.000000014168
#define IMU_GYO_SCAL_Z      +0.115140890293   //  0.000000997788 +0.000000015951
#define IMU_GYO_ALGN_XY      +0.007307524546   //  0.000999985088 -0.000000534957
#define IMU_GYO_ALGN_XZ      +0.000866880490   //  0.000999999725 -0.000000023917
#define IMU_GYO_ALGN_YX      +0.007437490583   //  0.000999974111 -0.000001879642
#define IMU_GYO_ALGN_YZ      -0.006877443444   //  0.000999997068 -0.000000823234
#define IMU_GYO_ALGN_ZX      +0.017474189624   //  0.000999972860 -0.000002790113
#define IMU_GYO_ALGN_ZY      -0.008685881252   //  0.000999987153 -0.000002036572
#define IMU_ACC_BIAS_X      -1.641622424545   //  0.000000001000 -0.000000018817
#define IMU_ACC_BIAS_Y      -1.635528717245   //  0.000000001000 -0.000000021149
#define IMU_ACC_BIAS_Z      -1.662962973601   //  0.000000000996 +0.000000005567
#define IMU_ACC_SCAL_X      +0.019635359898   //  0.000000000999 -0.000000040194
#define IMU_ACC_SCAL_Y      +0.019703923567   //  0.000000001000 +0.000000036301
#define IMU_ACC_SCAL_Z      +0.019049206068   //  0.000000001000 +0.000000003126
#define IMU_ACC_ALN_XY      +0.008332371100   //  0.000099997568 -0.000000284391
#define IMU_ACC_ALN_XZ      +0.002086343275   //  0.000099991734 +0.000000592014
#define IMU_ACC_ALN_YX      +0.014200257231   //  0.000099989393 +0.000000217523
#define IMU_ACC_ALN_YZ      +0.000361463904   //  0.000099999814 +0.000000016458
#define IMU_ACC_ALN_ZX      -0.000347267358   //  0.000099999736 +0.000000018746
#define IMU_ACC_ALN_ZY      -0.000228253855   //  0.000099999925 +0.000000006956

// sim3 --mag --incl
#define IMU_MAG_BIAS_X      -0.038233920423   //  0.000000997046 +0.000000000222
#define IMU_MAG_BIAS_Y      -0.030074649108   //  0.000000999826 +0.000000001168
#define IMU_MAG_BIAS_Z      +0.056494451966   //  0.000000941140 -0.000000000314
#define IMU_MAG_SCAL_X      +0.211018660329   //  0.000000998852 -0.000000000052
#define IMU_MAG_SCAL_Y      +0.216272406758   //  0.000000998734 +0.000000000511
#define IMU_MAG_SCAL_Z      +0.200464454366   //  0.000000989217 -0.000000001900
#define IMU_MAG_ALGN_XY      -0.013958415793   //  0.000099999250 -0.000000008854
#define IMU_MAG_ALGN_XZ      -0.022924714643   //  0.000099973988 +0.000000002452
#define IMU_MAG_ALGN_YX      -0.040335971930   //  0.000099992735 +0.000000001507
#define IMU_MAG_ALGN_YZ      -0.005476069800   //  0.000099994532 -0.000000028563
#define IMU_MAG_ALGN_ZX      -0.062409835094   //  0.000099726894 -0.000000001073
#define IMU_MAG_ALGN_ZY      +0.006459271624   //  0.000099997449 +0.000000002213
#define IMU_MAG_INCL      -67.230084875998   //  0.000000099995 +0.000000023556


Video showing what happens
http://www.youtube.com/watch?v=nRl22mitx1I
GoFaster
 
Posts: 355
Joined: Tue Jul 03, 2012 1:20 pm
Location: Connecticut, USA

Re: Can't transmit params

Postby JussiH » Tue Aug 07, 2012 4:03 pm

Try and use the "all parameters" section in "Edit PID" tab in the AQ widget...I never tried to use "Calibration and onboard parameters" tool widget, so I cant say if that should work...
JussiH
 
Posts: 2103
Joined: Thu Jun 21, 2012 9:25 pm

Re: Can't transmit params

Postby GoFaster » Tue Aug 07, 2012 4:14 pm

Hey that worked, thanks!
I missed that panel.

I guess I should click [Write (ROM)] to save the new parameters to STM flash?
GoFaster
 
Posts: 355
Joined: Tue Jul 03, 2012 1:20 pm
Location: Connecticut, USA

Re: Can't transmit params

Postby sandmen » Tue Aug 07, 2012 7:08 pm

To be clear, you should only use the autoquad main widget for editing parameter.
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Can't transmit params

Postby GoFaster » Tue Aug 07, 2012 7:18 pm

Which one, the one Jussi mentioned? I could transmit the params file from there but couldn't edit individual parameters. I had to use the 'Calibration and Parameters' Tool widget to edit magnetic declination for example, this is the widget I could not transmit param files with.
I think I tried clicking in the Main Autoquad widget->Edit PID settings->All parameters individual parameter's value field and it did not change into an edit box.

Thanks.
GoFaster
 
Posts: 355
Joined: Tue Jul 03, 2012 1:20 pm
Location: Connecticut, USA

Re: Can't transmit params

Postby sandmen » Tue Aug 07, 2012 8:19 pm

@GoFaster
Please do not edit some IMU values with "'Calibration and Parameters".
be careful, because this widget, dos all values round to 2 or 3 digits after decimal separator.
And this can be very bad in some case.
I would prefer the way, use your params file, add there any parameter, what you need to change.
And upload this file from the autoquad widget.
So, you are sure, the format is correct, and you have a backup from your parameter.
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Can't transmit params

Postby GoFaster » Tue Aug 07, 2012 8:30 pm

Thanks for the warning sandmen, will do!
GoFaster
 
Posts: 355
Joined: Tue Jul 03, 2012 1:20 pm
Location: Connecticut, USA


Return to AQ Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron