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

The stick class's state: the profile list, the picked profile, the run, the warning, the search, the manual steps and the rectangles the presses are matched against. More...

#include <esc_stick_panel_int.h>

Data Fields

int level
sp_maker_t makers [SP_MAX]
sp_row_t rows_m [SP_MODELS]
 Models of the open maker on level 1, by current, voltage and name.
const char * maker
int count
int runnable
int scroll
int bscroll
int model
const esc_profile_t * p
int pick [256]
 Per item: -1 keeps the item, else the index of the value to store.
int iscroll
int picked
char note [SP_NOTE]
bool could
bool warn
bool warn_down
uint8_t warn_id
ui_hold_t hold
bool timing
int tscroll
int tpicked
ui_keypad_t kp
int kp_idx
uint32_t kp_rev
esc_stick_t run
bool shown
uint32_t runs
uint32_t sig
 What the progress showed last, to redraw on a change.
uint32_t built_key
uint32_t builds
uint32_t now_ms
uint32_t stops
uint32_t pressed
bool armed
bool link_up
bool bind_read
uint8_t throttle_mask
char find [SP_FIND_MAX+1]
char find_was [SP_FIND_MAX+1]
 The pattern when the keyboard opened; CANCEL restores it.
ui_textkey_t tk
uint32_t tk_rev
gfx_rect_t find_box
gfx_rect_t find_clr
esc_stick_light_t light
bool green
motor_cmd_t q [SP_QUEUE]
 Commands the run asked for and the application has not taken, SP_QUEUE at most.
int qn
bool sent_arm
bool sent_supply
float sent_pct
bool hand_open
const esc_profile_t * hand_p
int hand_model
 Model the pop-up was opened for.
bool was_running
bool warn_read
bool sup_have
bool sup_live
bool sup_off_known
bool sup_gate
bool sup_off_drawn
 What a result last showed of the supply's off state.
uint32_t sup_at
uint32_t sup_off_since
uint8_t hand_seen [SP_MAX/8]
 Per profile, one bit: its manual steps were shown.
gfx_rect_t rows [SP_ROWS]
gfx_rect_t list_up
gfx_rect_t list_dn
gfx_rect_t hold_btn
gfx_rect_t cancel_btn
gfx_rect_t hand_btn
gfx_rect_t steps_btn
gfx_rect_t timing_btn
gfx_rect_t hand_res
 MANUAL INTERVENTION REQUIRED on a run's result: in the foot row, left of OK; hand_btn is its place on the profile's page.

Detailed Description

The stick class's state: the profile list, the picked profile, the run, the warning, the search, the manual steps and the rectangles the presses are matched against.

Field Documentation

◆ armed

bool stick_t::armed

whether the bench is ARMED

◆ bind_read

bool stick_t::bind_read

whether the output binding is read

◆ bscroll

int stick_t::bscroll

makers' scroll kept while a maker is open

◆ builds

uint32_t stick_t::builds

times the list has been built

◆ built_key

uint32_t stick_t::built_key

sp_list_key() when the list was built

◆ cancel_btn

gfx_rect_t stick_t::cancel_btn

CANCEL

◆ could

bool stick_t::could

whether RUN could start as last drawn

◆ count

int stick_t::count

entries the level shows

◆ find

char stick_t::find[SP_FIND_MAX+1]

the search pattern the list shows

◆ find_box

gfx_rect_t stick_t::find_box

search field

◆ find_clr

gfx_rect_t stick_t::find_clr

X button in the search field

◆ green

bool stick_t::green

whether the green lens lit at the last tick

◆ hand_btn

gfx_rect_t stick_t::hand_btn

MANUAL INTERVENTION REQUIRED

◆ hand_open

bool stick_t::hand_open

whether the profile's manual steps pop-up shows

◆ hand_p

const esc_profile_t* stick_t::hand_p

the profile the pop-up shows

◆ hold

ui_hold_t stick_t::hold

hold counter of the warning's button

◆ hold_btn

gfx_rect_t stick_t::hold_btn

HOLD TO RUN

◆ iscroll

int stick_t::iscroll

first item shown on the profile page

◆ kp

ui_keypad_t stick_t::kp

TIMING's keypad

◆ kp_idx

int stick_t::kp_idx

the row of sp_settings_list it types

◆ kp_rev

uint32_t stick_t::kp_rev

its revision as the page last followed it

◆ level

int stick_t::level

list level: 0 makers, 1 the models of one maker

◆ light

esc_stick_light_t stick_t::light

the stack light's state machine

◆ link_up

bool stick_t::link_up

whether the IOmcu link is up

◆ list_dn

gfx_rect_t stick_t::list_dn

page-down key

◆ list_up

gfx_rect_t stick_t::list_up

page-up key

◆ maker

const char* stick_t::maker

name of the maker open on level 1

◆ makers

sp_maker_t stick_t::makers[SP_MAX]

makers on level 0, alphabetical, SP_MAX at most

◆ model

int stick_t::model

the page's model, -1 for none

◆ note

char stick_t::note[SP_NOTE]

why RUN cannot start, SP_NOTE bytes; "" when it can

◆ now_ms

uint32_t stick_t::now_ms

bench time of the last tick, ms

◆ p

const esc_profile_t* stick_t::p

profile picked, NULL for none

◆ picked

int stick_t::picked

item picked, -1 for none

◆ pressed

uint32_t stick_t::pressed

presses taken since the last tick

◆ qn

int stick_t::qn

commands queued

◆ rows

gfx_rect_t stick_t::rows[SP_ROWS]

list rows

◆ run

esc_stick_t stick_t::run

the engine's run

◆ runnable

int stick_t::runnable

of those, entries that run

◆ runs

uint32_t stick_t::runs

runs started since boot

◆ scroll

int stick_t::scroll

first entry shown

◆ sent_arm

bool stick_t::sent_arm

whether the run's ARM went out

◆ sent_pct

float stick_t::sent_pct

last supply percentage sent

◆ sent_supply

bool stick_t::sent_supply

whether the run's supply command went out

◆ shown

bool stick_t::shown

whether the run's result is still on screen

◆ steps_btn

gfx_rect_t stick_t::steps_btn

manual steps

◆ stops

uint32_t stick_t::stops

STOP count the application last gave

◆ sup_at

uint32_t stick_t::sup_at

bench time of the newest reading, ms

◆ sup_gate

bool stick_t::sup_gate

whether the supply gates a step

◆ sup_have

bool stick_t::sup_have

whether a supply reading exists

◆ sup_live

bool stick_t::sup_live

whether the output is live

◆ sup_off_known

bool stick_t::sup_off_known

whether the output has read off

◆ sup_off_since

uint32_t stick_t::sup_off_since

bench time the output began reading off, ms

◆ throttle_mask

uint8_t stick_t::throttle_mask

channels bound as a throttle, one bit each

◆ timing

bool stick_t::timing

whether the TIMING page shows

◆ timing_btn

gfx_rect_t stick_t::timing_btn

TIMING

◆ tk

ui_textkey_t stick_t::tk

the search keyboard

◆ tk_rev

uint32_t stick_t::tk_rev

keyboard revision last drawn

◆ tpicked

int stick_t::tpicked

TIMING row picked, -1 for none

◆ tscroll

int stick_t::tscroll

first TIMING row shown

◆ warn

bool stick_t::warn

whether the RUN warning shows

◆ warn_down

bool stick_t::warn_down

whether the warning's hold button is down

◆ warn_id

uint8_t stick_t::warn_id

id of the warning's hold

◆ warn_read

bool stick_t::warn_read

whether ALL STEPS were read over the warning

◆ was_running

bool stick_t::was_running

whether the run was under way at the last tick


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