mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:23:35 +08:00
simulator: break out standalone battery simulator module
- this is a small step towards unifying SITL & HITL
This commit is contained in:
@@ -39,32 +39,6 @@
|
||||
* @author Mohamed Abdelkader <mohamedashraf123@gmail.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Simulator Battery drain interval
|
||||
*
|
||||
* @min 1
|
||||
* @max 86400
|
||||
* @increment 1
|
||||
* @unit s
|
||||
*
|
||||
* @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);
|
||||
|
||||
/**
|
||||
* Simulator block GPS data.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user