MP, Battery monitor PX4 selection resets BATT_VOLT_PIN
In my PX4 project I intend to use PIN=10 for battery monitor voltage input. So I enter 10 to the BATT_VOLT_PIN field in the parameter list, and clic Write Params. According to this wiki: http://plane.ardupilot.com/wiki/common-px4-analog-pins/ Works fine.
Until I use the MP battery monitor tab to do some calibration and select PX4 in the APM Ver field. Doing so resets (without telling) BATT_VOLT_PIN to 100 (default for PX4).
And then, if I go back to parameter list and re-enter 10 in the BATT_VOLT_PIN it makes the APM Ver field go blank
And maybe it can be left like that, BATT_VOLT_PIN=10 and APM Ver blank, but IMHO it is a bit untidy, prone to cause confusion. I suggest, whatever the solution is, that it is made to appear more clearly to the user.
Uh, forgot to mention versions: MP 1.2.85 and PX4 fw 2.75. I also updated the PX4IO firmware and that seemed to go through ok. Tom
That battery monitor tab is actually just a front-end that sets several parameters in the full parameter list (pin numbers and scaling factors). The APM version that you can select sets those to defaults for the chosen hardware; the version is not stored anywhere. When presenting the data, the version is probably inferred back from the pin numbers. So: Either use the tab of you have a standard hardware setup, or don't use it at all and go via the full parameter list if you have a custom setup.
Ok, thank you for the clarification! Maybe one day this info will reach the wiki ;)
My pleasure. You just have to know, the full parameter list is the Truth and the other pages are just facades. And that, surprisingly, writing a mission also sets a couple of parameters. Are you an expert on PX4 analog input? I have the PX4IO and I can't get current measurement to work. OK maybe you don't know; it looks like you are not using the IO board.
I do use the IO-board. However only in my current project still in the build, only bench tests. And I am certainly not an PX analog input expert, though I sure wish I was... And as soon as the Pixhawk arrives I guess the PX4 will be ripped out of the project >D