simulator: break out standalone battery simulator module

- this is a small step towards unifying SITL & HITL
This commit is contained in:
Daniel Agar
2020-06-24 10:39:21 -04:00
committed by GitHub
parent ae4ed87a31
commit 55808ed2f9
14 changed files with 378 additions and 91 deletions
-26
View File
@@ -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.
*