HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
testControlEstimation.cpp File Reference
#include "trksim/activityDoControl.hpp"
#include <ciiLogManager.hpp>
#include <taiclock/taiClock.hpp>
#include <ptk/angles.hpp>
#include <gtest/gtest.h>
#include <gtest/gtest_prod.h>
#include <valgrind.h>
#include <rad/utest/oldbInterface.hpp>
#include <rad/utest/oldbAdapter.hpp>
#include <rad/utest/config.hpp>
#include <mal/utility/LoadMal.hpp>
#include <date/tz.h>
#include "mal/Cii.hpp"
#include "trksim/dataContext.hpp"
#include "trksim/oldbInterface.hpp"
#include "trksim/config.hpp"
#include "trksim/activityDoEstimation.hpp"
#include "trksim/logger.hpp"
#include <hlcc/oldbmux/observablePublisher.hpp>
#include "ccsinsoldb.hpp"
#include "hlcc/inMemoryOldbloader/inMemoryOldbloader.hpp"

Classes

class  OldbAdapterDummy
 
class  OldbInterfaceDummy
 
class  ControlEstimationTest
 

Macros

#define EXPECT_RADIANS_EQ(a, b)    EXPECT_DOUBLE_EQ(Radians((a)).Get(), Radians((b)).Get())
 Test that two angles in radians are almost equal.
 
#define EXPECT_RADIANS_NEAR(a, b, eps)    EXPECT_NEAR(Radians((a)).Get(), Radians((b)).Get(), (eps))
 Test that two angles in radians are within a given distance to each other.
 

Functions

Radians DeltaRaScaled (Radians delta_ra, Radians dec, Radians delta_dec)
 
 TEST_F (ControlEstimationTest, testPresetTrackingOffset)
 
 TEST_F (ControlEstimationTest, testMove)
 
 TEST_F (ControlEstimationTest, testPresetAvoidAzLimit)
 

Variables

const std::string ELT_HLCC_TRKSIM_DATA_POINTS_SPEC
 
const std::string ELT_SITE_DATA_POINTS_SPEC
 

Macro Definition Documentation

◆ EXPECT_RADIANS_EQ

#define EXPECT_RADIANS_EQ ( a,
b )    EXPECT_DOUBLE_EQ(Radians((a)).Get(), Radians((b)).Get())

Test that two angles in radians are almost equal.

◆ EXPECT_RADIANS_NEAR

#define EXPECT_RADIANS_NEAR ( a,
b,
eps )    EXPECT_NEAR(Radians((a)).Get(), Radians((b)).Get(), (eps))

Test that two angles in radians are within a given distance to each other.

Function Documentation

◆ DeltaRaScaled()

Radians DeltaRaScaled ( Radians delta_ra,
Radians dec,
Radians delta_dec )

Independent impl of [I-INS/CCS-497] scaling formula

◆ TEST_F() [1/3]

TEST_F ( ControlEstimationTest ,
testMove  )

◆ TEST_F() [2/3]

TEST_F ( ControlEstimationTest ,
testPresetAvoidAzLimit  )

◆ TEST_F() [3/3]

TEST_F ( ControlEstimationTest ,
testPresetTrackingOffset  )

Variable Documentation

◆ ELT_HLCC_TRKSIM_DATA_POINTS_SPEC

const std::string ELT_HLCC_TRKSIM_DATA_POINTS_SPEC
Initial value:
= R"-(
- uri: "/mon/heartbeat"
type: "DOUBLE"
units: "-"
comment: "Heartbeat for hlcc telif"
default_value: 0
- uri: "/mon/state"
type: "STRING"
units: "-"
comment: "Current state of the Telescope interface simulator application"
default_value: ""
max_age: 10
heartbeat_point: "/mon/heartbeat"
)-"

◆ ELT_SITE_DATA_POINTS_SPEC

const std::string ELT_SITE_DATA_POINTS_SPEC