22 #include "ad/physics/AccelerationValidInputRange.hpp"
24 #include "spdlog/fmt/ostr.h"
25 #include "spdlog/spdlog.h"
42 bool const logErrors =
true)
45 bool inValidInputRange =
true;
49 if (!inValidInputRange && logErrors)
51 spdlog::error(
"withinValidInputRange(::ad::rss::world::LongitudinalRssAccelerationValues)>> {} has invalid member",
56 if (inValidInputRange)
59 = (::ad::physics::Acceleration(0.) <= input.
accelMax) && (input.
accelMax <= ::ad::physics::Acceleration(1e2));
60 if (!inValidInputRange && logErrors)
62 spdlog::error(
"withinValidInputRange(::ad::rss::world::LongitudinalRssAccelerationValues)>> {} element {} out of "
63 "valid input range [{}, {}]",
66 ::ad::physics::Acceleration(0.),
67 ::ad::physics::Acceleration(1e2));
71 if (inValidInputRange)
74 if (!inValidInputRange && logErrors)
76 spdlog::error(
"withinValidInputRange(::ad::rss::world::LongitudinalRssAccelerationValues)>> {} element {} out of "
77 "valid input range [{}, {}]",
80 ::ad::physics::Acceleration(-1e2),
85 if (inValidInputRange)
88 if (!inValidInputRange && logErrors)
90 spdlog::error(
"withinValidInputRange(::ad::rss::world::LongitudinalRssAccelerationValues)>> {} element {} out of "
91 "valid input range [{}, {}]",
99 if (inValidInputRange)
103 if (!inValidInputRange && logErrors)
105 spdlog::error(
"withinValidInputRange(::ad::rss::world::LongitudinalRssAccelerationValues)>> {} element {} out of "
106 "valid input range [{}, {}]",
110 ::ad::physics::Acceleration(0.));
114 return inValidInputRange;