Removed dependency on <algorithm>

This commit is contained in:
Pavel Kirienko
2017-04-06 12:26:22 +03:00
committed by Lorenz Meier
parent 098b57534d
commit 02a9ccc4f2
+1 -2
View File
@@ -43,7 +43,6 @@
#include <drivers/drv_hrt.h>
#include <systemlib/err.h>
#include <mathlib/mathlib.h>
#include <algorithm>
const char *const UavcanGnssBridge::NAME = "gnss";
@@ -424,7 +423,7 @@ void UavcanGnssBridge::broadcast_from_orb(const uavcan::TimerEvent &)
msg.covariance.resize(3, orb_msg.epv * orb_msg.epv);
msg.covariance.resize(6, orb_msg.s_variance_m_s * orb_msg.s_variance_m_s);
msg.pdop = std::max(orb_msg.hdop, orb_msg.vdop); // this is a hack :(
msg.pdop = (orb_msg.hdop > orb_msg.vdop) ? orb_msg.hdop : orb_msg.vdop; // this is a hack :(
// Publishing now
(void) _pub_fix2.broadcast(msg);