mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 18:00:34 +08:00
Parameter for virtual battery in SITL (#12299)
* New parameter for virtual battery in SITL * Update src/modules/simulator/simulator_mavlink.cpp Co-Authored-By: Beat Küng <beat-kueng@gmx.net> * Updated description for parameter SIM_BAT_MIN_PCT
This commit is contained in:
@@ -51,3 +51,17 @@
|
||||
* @group SITL
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SIM_BAT_DRAIN, 60);
|
||||
|
||||
/**
|
||||
* Simulator Battery minimal percentage. Can be used to alter
|
||||
* the battery level during SITL- or HITL-simulation on the fly.
|
||||
* Particularly useful for testing different low-battery behaviour.
|
||||
*
|
||||
* @min 0
|
||||
* @max 100
|
||||
* @increment 0.1
|
||||
* @unit %
|
||||
*
|
||||
* @group SITL
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(SIM_BAT_MIN_PCT, 50.0f);
|
||||
|
||||
Reference in New Issue
Block a user