diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 9b1556426ae96e977b789db38f517ab0ee581a09..65b8d9a5725d7f67b14f495e0db312a589781545 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -38,6 +38,11 @@ * as the previous one created unless one calls deleteSettings in the code after * creating the UAS. */ + +const float UAS::lipoFull = 4.2f; ///< 100% charged voltage +const float UAS::lipoEmpty = 3.5f; ///< Discharged voltage + + UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), uasId(id), links(new QList()), diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 74d15c017b68a07072627265eeca2a419f8512e0..0da722b682b803652b595afea1cb0e67f60f5c22 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.h @@ -56,8 +56,8 @@ public: UAS(MAVLinkProtocol* protocol, int id = 0); ~UAS(); - static const float lipoFull = 4.2f; ///< 100% charged voltage - static const float lipoEmpty = 3.5f; ///< Discharged voltage + static const float lipoFull; ///< 100% charged voltage + static const float lipoEmpty; ///< Discharged voltage /* MANAGEMENT */