HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
Protected Member Functions | Static Protected Member Functions | List of all members
ControlEstimationTest Class Reference
Inheritance diagram for ControlEstimationTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
bool AwaitEstimatedState (DataContext::EstimatedState expected_state, std::chrono::milliseconds timeout)
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 

Detailed Description

Tests ActivityDoControl and ActivityDoEstimation at their original speed (20 Hz), through their interaction with DataContext.

The StateMachine, OLDB etc are circumvented.

Member Function Documentation

◆ AwaitEstimatedState()

bool ControlEstimationTest::AwaitEstimatedState ( DataContext::EstimatedState expected_state,
std::chrono::milliseconds timeout )
inlineprotected

Polls DataContext::GetEstimatedState until expected_state or timeout is reached.

TODO: If we need this more often, then a callback registration for DataContext::SetEstimatedState would be better than this quick and dirty polling.

Returns
true if expected_state was reached, false if timeout occurred.

◆ SetUp()

void ControlEstimationTest::SetUp ( )
inlineoverrideprotected

◆ SetUpTestSuite()

static void ControlEstimationTest::SetUpTestSuite ( )
inlinestaticprotected

◆ TearDown()

void ControlEstimationTest::TearDown ( )
inlineoverrideprotected

◆ TearDownTestSuite()

static void ControlEstimationTest::TearDownTestSuite ( )
inlinestaticprotected

The documentation for this class was generated from the following file: