mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
bat_sim: parameter for disabling battery simulator
This commit is contained in:
committed by
Daniel Agar
parent
1917c138f7
commit
a6fcb8ef1e
@@ -248,7 +248,12 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
load_mon start
|
load_mon start
|
||||||
battery_simulator start
|
|
||||||
|
if param compare SIM_BAT_ENABLE 1
|
||||||
|
then
|
||||||
|
battery_simulator start
|
||||||
|
fi
|
||||||
|
|
||||||
tone_alarm start
|
tone_alarm start
|
||||||
rc_update start
|
rc_update start
|
||||||
manual_control start
|
manual_control start
|
||||||
|
|||||||
@@ -31,6 +31,18 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Simulator Battery enabled
|
||||||
|
*
|
||||||
|
* Enable or disable the internal battery simulation. This is useful
|
||||||
|
* when the battery is simulated externally and interfaced with PX4
|
||||||
|
* through MAVLink for example.
|
||||||
|
*
|
||||||
|
* @boolean
|
||||||
|
* @group SITL
|
||||||
|
*/
|
||||||
|
PARAM_DEFINE_INT32(SIM_BAT_ENABLE, 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simulator Battery drain interval
|
* Simulator Battery drain interval
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user