ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

SITL: fix SIM_BATT_CAP_AH

Open robertlong13 opened this issue 1 year ago • 3 comments

Previously did nothing. The only way to set the capacity was to set it within your model's json.

robertlong13 avatar Dec 19 '24 03:12 robertlong13

@robertlong13 how does this interact with someone setting the capacity in the json?

peterbarker avatar Dec 26 '24 23:12 peterbarker

@robertlong13 how does this interact with someone setting the capacity in the json?

After the json is loaded, it sets the default for this parameter to whatever capacity the json set it to. So, unless you go out of your way to set this parameter, this PR doesn't impact anything (tested with Callisto).

robertlong13 avatar Dec 27 '24 00:12 robertlong13

@peterbarker reminder on this one. Fell off my radar too

robertlong13 avatar Jun 10 '25 09:06 robertlong13

Merged, thanks!

peterbarker avatar Dec 02 '25 09:12 peterbarker