ad_rss
generated
include
ad
rss
state
UnstructuredConstellationRssStateValidInputRange.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/geometry/HeadingRangeValidInputRange.hpp"
23
#include "
ad/rss/state/UnstructuredConstellationResponseValidInputRange.hpp
"
24
#include "
ad/rss/state/UnstructuredConstellationRssState.hpp
"
25
#include "
ad/rss/state/UnstructuredConstellationStateInformationValidInputRange.hpp
"
26
#include "
ad/rss/world/LongitudinalRssAccelerationValuesValidInputRange.hpp
"
27
#include "spdlog/fmt/ostr.h"
28
#include "spdlog/spdlog.h"
29
40
inline
bool
withinValidInputRange
(::
ad::rss::state::UnstructuredConstellationRssState
const
&input,
41
bool
const
logErrors =
true
)
42
{
43
// check for generic member input ranges
44
bool
inValidInputRange =
true
;
45
inValidInputRange =
withinValidInputRange
(input.
response
, logErrors)
46
&&
withinValidInputRange
(input.
heading_range
, logErrors)
47
&&
withinValidInputRange
(input.
rss_state_information
, logErrors)
48
&&
withinValidInputRange
(input.
alpha_lon
, logErrors);
49
if
(!inValidInputRange && logErrors)
50
{
51
spdlog::error(
"withinValidInputRange(::ad::rss::state::UnstructuredConstellationRssState)>> {} has invalid member"
,
52
input);
// LCOV_EXCL_BR_LINE
53
}
54
55
return
inValidInputRange;
56
}
LongitudinalRssAccelerationValuesValidInputRange.hpp
UnstructuredConstellationResponseValidInputRange.hpp
withinValidInputRange
bool withinValidInputRange(::ad::rss::state::UnstructuredConstellationRssState const &input, bool const logErrors=true)
check if the given UnstructuredConstellationRssState is within valid input range
Definition:
UnstructuredConstellationRssStateValidInputRange.hpp:40
UnstructuredConstellationRssState.hpp
UnstructuredConstellationStateInformationValidInputRange.hpp
ad::rss::state::UnstructuredConstellationRssState
DataType UnstructuredConstellationRssState.
Definition:
UnstructuredConstellationRssState.hpp:46
ad::rss::state::UnstructuredConstellationRssState::rss_state_information
::ad::rss::state::UnstructuredConstellationStateInformation rss_state_information
Definition:
UnstructuredConstellationRssState.hpp:138
ad::rss::state::UnstructuredConstellationRssState::response
::ad::rss::state::UnstructuredConstellationResponse response
Definition:
UnstructuredConstellationRssState.hpp:128
ad::rss::state::UnstructuredConstellationRssState::alpha_lon
::ad::rss::world::LongitudinalRssAccelerationValues alpha_lon
Definition:
UnstructuredConstellationRssState.hpp:143
ad::rss::state::UnstructuredConstellationRssState::heading_range
::ad::geometry::HeadingRange heading_range
Definition:
UnstructuredConstellationRssState.hpp:133
Generated by
1.9.1