rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
esc_sim_t Struct Reference

Full state of one simulated ESC. More...

#include <esc_sim.h>

Data Fields

const esc_profile_t * p
esc_sim_cfg_t c
esc_sim_mode_t mode
bool powered
uint32_t on_ms
esc_throttle_t pos
esc_throttle_t entry
uint8_t loop [ESC_SIM_LOOP_MAX]
uint8_t loop_n
uint8_t loop_i
uint8_t rep
uint8_t pulse [ESC_SIM_PULSE_MAX]
uint8_t pulse_n
uint8_t pulse_i
uint8_t seg
uint32_t seg_end
bool menu_group
uint8_t sounding
uint8_t ended
uint32_t ended_ms
uint8_t item
uint8_t pend_item
uint8_t pend_value
uint8_t pend_step
uint32_t resets
uint32_t menu_groups
bool dropped
bool tones_done
bool hand_done
bool answering
uint8_t stored [256]
esc_throttle_t stored_from [256]
uint32_t stores
uint32_t misplaced
uint32_t lcg

Detailed Description

Full state of one simulated ESC.

Field Documentation

◆ answering

bool esc_sim_t::answering

sounding the answer to it

◆ c

esc_sim_cfg_t esc_sim_t::c

timing and fault settings

◆ dropped

bool esc_sim_t::dropped

this beep draws nothing

◆ ended

uint8_t esc_sim_t::ended

the last menu group to end

◆ ended_ms

uint32_t esc_sim_t::ended_ms

when that group ended

◆ entry

esc_throttle_t esc_sim_t::entry

where this power-up entered

◆ hand_done

bool esc_sim_t::hand_done

the person's action, this power-up

◆ item

uint8_t esc_sim_t::item

VALUES: the item selected

◆ lcg

uint32_t esc_sim_t::lcg

state of the noise generator

◆ loop

uint8_t esc_sim_t::loop[ESC_SIM_LOOP_MAX]

group numbers, in the loop

◆ loop_i

uint8_t esc_sim_t::loop_i

group sounding

◆ loop_n

uint8_t esc_sim_t::loop_n

groups in the loop

◆ menu_group

bool esc_sim_t::menu_group

the group is a menu entry

◆ menu_groups

uint32_t esc_sim_t::menu_groups

menu groups sounded

◆ misplaced

uint32_t esc_sim_t::misplaced

stored from a position not the value's own

◆ mode

esc_sim_mode_t esc_sim_t::mode

current menu mode

◆ on_ms

uint32_t esc_sim_t::on_ms

when the supply came on

◆ p

const esc_profile_t* esc_sim_t::p

the profile being followed

◆ pend_item

uint8_t esc_sim_t::pend_item

PENDING: what the move stores

◆ pend_step

uint8_t esc_sim_t::pend_step

PENDING: the store moves made

◆ pend_value

uint8_t esc_sim_t::pend_value

PENDING: the value to store

◆ pos

esc_throttle_t esc_sim_t::pos

stick position

◆ powered

bool esc_sim_t::powered

supply on

◆ pulse

uint8_t esc_sim_t::pulse[ESC_SIM_PULSE_MAX]

1 long, 0 short

◆ pulse_i

uint8_t esc_sim_t::pulse_i

index of the pulse sounding

◆ pulse_n

uint8_t esc_sim_t::pulse_n

pulses in the group

◆ rep

uint8_t esc_sim_t::rep

repeats done

◆ resets

uint32_t esc_sim_t::resets

reset items taken

◆ seg

uint8_t esc_sim_t::seg

◆ seg_end

uint32_t esc_sim_t::seg_end

when the current segment ends

◆ sounding

uint8_t esc_sim_t::sounding

its number

◆ stored

uint8_t esc_sim_t::stored[256]

value stored for each item

◆ stored_from

esc_throttle_t esc_sim_t::stored_from[256]

the power-up's position

◆ stores

uint32_t esc_sim_t::stores

values stored

◆ tones_done

bool esc_sim_t::tones_done

the entry's own tones


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