ad_rss
generated
include
ad
rss
state
LateralRssStateValidInputRange.hpp
Go to the documentation of this file.
1
/*
2
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
3
*
4
* Copyright (C) 2018-2020 Intel Corporation
5
*
6
* SPDX-License-Identifier: LGPL-2.1-only
7
*
8
* ----------------- END LICENSE BLOCK -----------------------------------
9
*/
10
18
#pragma once
19
20
#include <cmath>
21
#include <limits>
22
#include "
ad/rss/state/LateralResponseValidInputRange.hpp
"
23
#include "
ad/rss/state/LateralRssState.hpp
"
24
#include "
ad/rss/state/RssStateInformationValidInputRange.hpp
"
25
#include "
ad/rss/world/LateralRssAccelerationValuesValidInputRange.hpp
"
26
#include "spdlog/fmt/ostr.h"
27
#include "spdlog/spdlog.h"
28
39
inline
bool
withinValidInputRange
(::
ad::rss::state::LateralRssState
const
&input,
bool
const
logErrors =
true
)
40
{
41
// check for generic member input ranges
42
bool
inValidInputRange =
true
;
43
inValidInputRange =
withinValidInputRange
(input.
response
, logErrors)
44
&&
withinValidInputRange
(input.
alphaLat
, logErrors) &&
withinValidInputRange
(input.
rssStateInformation
, logErrors);
45
if
(!inValidInputRange && logErrors)
46
{
47
spdlog::error(
"withinValidInputRange(::ad::rss::state::LateralRssState)>> {} has invalid member"
,
48
input);
// LCOV_EXCL_BR_LINE
49
}
50
51
return
inValidInputRange;
52
}
ad::rss::state::LateralRssState::alphaLat
::ad::rss::world::LateralRssAccelerationValues alphaLat
Definition:
LateralRssState.hpp:132
withinValidInputRange
bool withinValidInputRange(::ad::rss::state::LateralRssState const &input, bool const logErrors=true)
check if the given LateralRssState is within valid input range
Definition:
LateralRssStateValidInputRange.hpp:39
LateralRssAccelerationValuesValidInputRange.hpp
ad::rss::state::LateralRssState::response
::ad::rss::state::LateralResponse response
Definition:
LateralRssState.hpp:127
LateralResponseValidInputRange.hpp
LateralRssState.hpp
ad::rss::state::LateralRssState
DataType LateralRssState.
Definition:
LateralRssState.hpp:44
ad::rss::state::LateralRssState::rssStateInformation
::ad::rss::state::RssStateInformation rssStateInformation
Definition:
LateralRssState.hpp:137
RssStateInformationValidInputRange.hpp
Generated by
1.8.17