Class ApplicationInputs

Class Documentation

class ApplicationInputs

The applications inputs from a udp data packet.

Public Functions

ApplicationInputs()

Constructor of application inputs.

std::vector<bool> getUnsafeInputsInputSourcesVector() const

Gets the unsafe input sources.

The individual bits represent the current state of the static input sources used for monitoring case switching

Returns

The unsafe input sources.

void setUnsafeInputsInputSourcesVector(const std::vector<bool> &unsafe_inputs_input_sources_vector)

Sets the unsafe input sources.

Parameters

unsafe_inputs_input_sources_vector – The unsafe input sources.

std::vector<bool> getUnsafeInputsFlagsVector() const

Gets the flags for the unsafe input sources.

There is one flag (bit) for each static input source. If the flag is HIGH, the corresponding input source is available to be used by the application.

Returns

The unsafe input sources flags.

void setUnsafeInputsFlagsVector(const std::vector<bool> &unsafe_inputs_flags_vector)

Sets the unsafe input sources flags.

Parameters

unsafe_inputs_flags_vector – The unsafe input sources flags.

std::vector<uint16_t> getMonitoringCasevector() const

Gets the monitoring case numbers.

Returns

The monitoring case vector.

void setMonitoringCaseVector(const std::vector<uint16_t> &monitoring_case_vector)

Sets the monitoring case vector.

Parameters

monitoring_case_vector – The monitoring case vector.

std::vector<bool> getMonitoringCaseFlagsVector() const

Gets the monitoring case flags.

Returns

The monitoring case flags.

void setMonitoringCaseFlagsVector(const std::vector<bool> &monitoring_case_flags_vector)

Sets the monitoring case flags.

Parameters

monitoring_case_flags_vector – The monitoring case flags.

int16_t getVelocity0() const

Gets the first linear velocity input.

Returns

The first linear velocity input.

void setVelocity0(const int16_t &velocity_0)

Sets the first linear velocity input.

Parameters

velocity_0 – The first linear velocity input.

int16_t getVelocity1() const

Gets the second linear velocity input.

Returns

The second linear velocity input

void setVelocity1(const int16_t &velocity_1)

Sets the second linear velocity input.

Parameters

velocity_1 – The second linear velocity input.

bool getVelocity0Valid() const

Gets if first linear velocity input is valid.

Returns

If first linear velocity input is valid.

void setVelocity0Valid(bool velocity_0_valid)

Sets if first linear velocity input is valid.

Parameters

velocity_0_valid – If first linear velocity input is valid.

bool getVelocity1Valid() const

Gets if second linear velocity input is valid.

Returns

If second linear velocity input is valid.

void setVelocity1Valid(bool velocity_1_valid)

If second linear velocity input is valid.

Parameters

velocity_1_valid – If second linear velocity input is valid.

bool getVelocity0TransmittedSafely() const

Gets if first linear velocity input is transmitted safely.

Returns

If first linear velocity input is transmitted safely.

void setVelocity0TransmittedSafely(bool velocity_0_transmitted_safely)

Sets if first linear velocity input is transmitted safely.

Parameters

velocity_0_transmitted_safely

bool getVelocity1TransmittedSafely() const

Gets if second linear velocity input is transmitted safely.

Returns

If second linear velocity input is transmitted safely.

void setVelocity1TransmittedSafely(bool velocity_1_transmitted_safely)

Sets if second linear velocity input is transmitted safely.

Parameters

velocity_1_transmitted_safely – If second linear velocity input is transmitted safely.

int8_t getSleepModeInput() const

Gets the state of the sleep mode.

Returns

The state of the sleep mode.

void setSleepModeInput(const int8_t &sleep_mode_input)

Sets the state of the sleep mode.

Parameters

sleep_mode_input – The state of the sleep mode.