aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/commander_params.c
diff options
context:
space:
mode:
authorStefan Rado <px4@sradonia.net>2014-02-14 01:48:00 +0100
committerStefan Rado <px4@sradonia.net>2014-02-14 01:48:00 +0100
commit7441efde4745c0dddc08a36a0bbf83307f82948a (patch)
treebf3539fdd100914362cea5822d042a28dbca8bc7 /src/modules/commander/commander_params.c
parentccfe476326d8b01e33a3a7ea115054a31fa7a2b9 (diff)
downloadpx4-firmware-7441efde4745c0dddc08a36a0bbf83307f82948a.tar.gz
px4-firmware-7441efde4745c0dddc08a36a0bbf83307f82948a.tar.bz2
px4-firmware-7441efde4745c0dddc08a36a0bbf83307f82948a.zip
Add a lot of MAVLink parameter documentation.
Diffstat (limited to 'src/modules/commander/commander_params.c')
-rw-r--r--src/modules/commander/commander_params.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/modules/commander/commander_params.c b/src/modules/commander/commander_params.c
index d3155f7bf..80ca68f21 100644
--- a/src/modules/commander/commander_params.c
+++ b/src/modules/commander/commander_params.c
@@ -48,7 +48,39 @@
PARAM_DEFINE_FLOAT(TRIM_ROLL, 0.0f);
PARAM_DEFINE_FLOAT(TRIM_PITCH, 0.0f);
PARAM_DEFINE_FLOAT(TRIM_YAW, 0.0f);
+
+/**
+ * Empty cell voltage.
+ *
+ * Defines the voltage where a single cell of the battery is considered empty.
+ *
+ * @group Battery Calibration
+ */
PARAM_DEFINE_FLOAT(BAT_V_EMPTY, 3.4f);
+
+/**
+ * Full cell voltage.
+ *
+ * Defines the voltage where a single cell of the battery is considered full.
+ *
+ * @group Battery Calibration
+ */
PARAM_DEFINE_FLOAT(BAT_V_FULL, 3.9f);
+
+/**
+ * Number of cells.
+ *
+ * Defines the number of cells the attached battery consists of.
+ *
+ * @group Battery Calibration
+ */
PARAM_DEFINE_INT32(BAT_N_CELLS, 3);
+
+/**
+ * Battery capacity.
+ *
+ * Defines the capacity of the attached battery.
+ *
+ * @group Battery Calibration
+ */
PARAM_DEFINE_FLOAT(BAT_CAPACITY, -1.0f);