hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
ControlEstimationTest Class Reference
Inheritance diagram for ControlEstimationTest:

Protected Member Functions

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

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() [1/2]

void ControlEstimationTest::SetUp ( )
inlineoverrideprotected

◆ SetUp() [2/2]

void ControlEstimationTest::SetUp ( )
inlineoverrideprotected

◆ TearDown() [1/2]

void ControlEstimationTest::TearDown ( )
inlineoverrideprotected

◆ TearDown() [2/2]

void ControlEstimationTest::TearDown ( )
inlineoverrideprotected

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