Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
pcg_detail::inside_out< baseclass > Struct Template Reference
Inheritance diagram for pcg_detail::inside_out< baseclass >:
Collaboration diagram for pcg_detail::inside_out< baseclass >:

Public Types

typedef baseclass::result_type result_type
typedef baseclass::state_type state_type

Static Public Member Functions

static bool external_step (result_type &randval, size_t i)
static bool external_advance (result_type &randval, size_t i, result_type delta, bool forwards=true)

Member Function Documentation

◆ external_step()

template<typename baseclass>
bool pcg_detail::inside_out< baseclass >::external_step ( result_type & randval,
size_t i )
inlinestatic
96592 {
96593 state_type state = baseclass::unoutput(randval);
96595 + state_type(i*2);
96596 result_type result = baseclass::output(state);
96597 randval = result;
96598 state_type zero =
96599 baseclass::is_mcg ? state & state_type(3U) : state_type(0U);
96600 return result == zero;
96601 }
Definition duckdb.cpp:96583

◆ external_advance()

template<typename baseclass>
bool pcg_detail::inside_out< baseclass >::external_advance ( result_type & randval,
size_t i,
result_type delta,
bool forwards = true )
inlinestatic
96605 {
96606 state_type state = baseclass::unoutput(randval);
96607 state_type mult = baseclass::multiplier();
96608 state_type inc = baseclass::increment() + state_type(i*2);
96609 state_type zero =
96610 baseclass::is_mcg ? state & state_type(3U) : state_type(0U);
96612 bool crosses_zero =
96614 : (-dist_to_zero) <= delta;
96615 if (!forwards)
96616 delta = -delta;
96619 return crosses_zero;
96620 }

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