22 #include "ad/physics/AccelerationValidInputRange.hpp"
24 #include "spdlog/fmt/ostr.h"
25 #include "spdlog/spdlog.h"
40 bool const logErrors =
true)
43 bool inValidInputRange =
true;
46 if (!inValidInputRange && logErrors)
48 spdlog::error(
"withinValidInputRange(::ad::rss::world::LateralRssAccelerationValues)>> {} has invalid member",
53 if (inValidInputRange)
56 = (::ad::physics::Acceleration(0.) <= input.
accelMax) && (input.
accelMax <= ::ad::physics::Acceleration(1e2));
57 if (!inValidInputRange && logErrors)
59 spdlog::error(
"withinValidInputRange(::ad::rss::world::LateralRssAccelerationValues)>> {} element {} out of "
60 "valid input range [{}, {}]",
63 ::ad::physics::Acceleration(0.),
64 ::ad::physics::Acceleration(1e2));
68 if (inValidInputRange)
71 = (::ad::physics::Acceleration(-1e2) <= input.
brakeMin) && (input.
brakeMin < ::ad::physics::Acceleration(0.));
72 if (!inValidInputRange && logErrors)
74 spdlog::error(
"withinValidInputRange(::ad::rss::world::LateralRssAccelerationValues)>> {} element {} out of "
75 "valid input range [{}, {}]",
78 ::ad::physics::Acceleration(-1e2),
79 ::ad::physics::Acceleration(0.));
83 return inValidInputRange;