mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 23:53:34 +08:00
BATTERY_STATUS: improve filling cell voltage
according to review comment
This commit is contained in:
@@ -56,6 +56,12 @@ constexpr _Tp min(_Tp a, _Tp b)
|
||||
return (a < b) ? a : b;
|
||||
}
|
||||
|
||||
template<typename _Tp>
|
||||
constexpr _Tp min(_Tp a, _Tp b, _Tp c)
|
||||
{
|
||||
return min(min(a, b), c);
|
||||
}
|
||||
|
||||
template<typename _Tp>
|
||||
constexpr _Tp max(_Tp a, _Tp b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user