Ozgenur / happykillmore-gcs

Automatically exported from code.google.com/p/happykillmore-gcs
Other
0 stars 0 forks source link

only 2 parameters out of 5 are displayed #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. connect HK GCS with autopilot via modem
2. go to configuration tab, press read
3.

What is the expected output? What do you see instead?
I would expect to see 5 variables. I see only 2. If I check "serial data" tab, 
then I see that 5 parameters were sent and the data sent seems to correspond to 
Mavlink protocol correctly

What version of the product are you using? On what operating system?
Windows 7, HK GCS Lite 1.3.16

Please provide any additional information below.
Parameters are sent with 100msec interval. I changed the interval to 200msec, 
no changes in behaviour.
I'm using custom autopilot.
please see attached screenshot from HK serial data tab

Original issue reported on code.google.com by andrus.k...@gmail.com on 7 Sep 2011 at 6:56

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, its not a bug probably but feature. After some testing I found out, that 
parameters sent by MAV_COMP_ID_SYSTEM_CONTROL are not displayed, and that 
parameter index starts from zero. False alert, sorry about that.

Original comment by andrus.k...@gmail.com on 7 Sep 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Can you post a data file with the parameter read so I can step through and see 
what's missing? I assume you can assign any values you want to these 
parameters, right? If so, I can add your description, min and max values in an 
area APM/ACM isn't using them. Does that make sense? MAVlink's parameters are 
actually text values, so you tell me what they are and I can add them to the 
internal table.

Original comment by paulbmather@gmail.com on 7 Sep 2011 at 6:04

GoogleCodeExporter commented 8 years ago
Once I made parameter index to start from zero and set component_id to 
MAV_COMP_ID_IMU, my 5 parameters are all displayed. Now I need to figure out, 
how to change them, as "write" button is grayed out and will not become active 
even if I change my parameters..

What these parameters are is not so important at this stage, as I'm just 
testing parameter interface and plan to add much more parameters once I've 
figured out how to interface to HK GCS.

Having min/max and description for my parameters in HK GCS sounds tempting:-) I 
will get back to you once I've finalized the parameter list I will send to GCS. 
They are stored in svn/trunk/TextFiles/MAVlinkSetConfig.txt in your code, 
aren't they?

Original comment by andrus.k...@gmail.com on 7 Sep 2011 at 7:15

GoogleCodeExporter commented 8 years ago
Yes.

Original comment by paulbmather@gmail.com on 7 Sep 2011 at 7:18

GoogleCodeExporter commented 8 years ago
I cannot get parameter save to work. What I did: I renamed my parameters to the 
ones that exist in MAVlinkSetConfig.txt file, and now they appear together with 
min/default values and comments. However, I cannot save parameters, as save 
button is grayed out and pressing it does nothing. Can you please advise, what 
I need in order to get parameter save to work, and/or point me to the source 
file in your code where the relevant logic is? 

Original comment by andrus.k...@gmail.com on 8 Sep 2011 at 4:20

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, I got it working. I found out, that HK GCS wants variables to be 
zero-padded in order to rezognize, that they are altered, and actiwate write 
button. When I set them space-padded, then HK GCS did show variables, but did 
not activate write button on alter.
I found that some variables are used internally by HK GCS and some variables 
are simply not shown. This is what misleaded me at first, as when I set 
variables to be zero-padded, then they did not show up and I thought that they 
need to be space-padded.

Original comment by andrus.k...@gmail.com on 13 Sep 2011 at 5:15