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-2022 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.
alpha_lat
, logErrors)
45
&&
withinValidInputRange
(input.
rss_state_information
, logErrors);
46
if
(!inValidInputRange && logErrors)
47
{
48
spdlog::error(
"withinValidInputRange(::ad::rss::state::LateralRssState)>> {} has invalid member"
,
49
input);
// LCOV_EXCL_BR_LINE
50
}
51
52
return
inValidInputRange;
53
}
LateralResponseValidInputRange.hpp
LateralRssAccelerationValuesValidInputRange.hpp
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
LateralRssState.hpp
RssStateInformationValidInputRange.hpp
ad::rss::state::LateralRssState
DataType LateralRssState.
Definition:
LateralRssState.hpp:45
ad::rss::state::LateralRssState::response
::ad::rss::state::LateralResponse response
Definition:
LateralRssState.hpp:127
ad::rss::state::LateralRssState::alpha_lat
::ad::rss::world::LateralRssAccelerationValues alpha_lat
Definition:
LateralRssState.hpp:132
ad::rss::state::LateralRssState::rss_state_information
::ad::rss::state::RssStateInformation rss_state_information
Definition:
LateralRssState.hpp:137
Generated by
1.9.1