ad_rss
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"
27 #include "spdlog/fmt/ostr.h"
28 #include "spdlog/spdlog.h"
29 
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 }
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
DataType UnstructuredConstellationRssState.
Definition: UnstructuredConstellationRssState.hpp:46
::ad::rss::state::UnstructuredConstellationStateInformation rss_state_information
Definition: UnstructuredConstellationRssState.hpp:138
::ad::rss::state::UnstructuredConstellationResponse response
Definition: UnstructuredConstellationRssState.hpp:128
::ad::rss::world::LongitudinalRssAccelerationValues alpha_lon
Definition: UnstructuredConstellationRssState.hpp:143
::ad::geometry::HeadingRange heading_range
Definition: UnstructuredConstellationRssState.hpp:133