Files
MicrOBU/microbu-esp32c5/external/vanetza-idf/vanetza/common/position_fix.cpp
T

14 lines
284 B
C++
Raw Normal View History

#include <vanetza/common/position_fix.hpp>
#include <boost/units/cmath.hpp>
namespace vanetza
{
bool has_horizontal_position(const PositionFix &posfix)
{
using namespace boost::units;
return isfinite(posfix.latitude) && isfinite(posfix.longitude);
}
} // namespace vanetza