rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
esc_stick_panel.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#include <stdbool.h>
25#include <stdint.h>
26
27#include "esc_stick.h"
28#include "motor_screen.h"
29#include "prog_registry.h"
30#include "supply.h"
31#include "tone_link.h"
32#include "ui_keypad.h"
33#include "ui_screen.h"
34
37
40int esc_stick_panel_stage(void);
41
50void esc_stick_panel_bench(uint32_t now_ms, bool armed, uint32_t stops,
51 uint32_t pressed, bool link_up);
52
61void esc_stick_panel_set_throttle(bool read, uint8_t channels);
62
65
75
78
82
85uint32_t esc_stick_panel_runs(void);
86
89
92const char *esc_stick_panel_search(void);
93bool esc_stick_panel_typing(void);
94
101
107
110int esc_stick_panel_listed(int *top);
111
115int esc_stick_panel_level(void);
116const char *esc_stick_panel_maker(void);
117int esc_stick_panel_model(void);
118const char *esc_stick_panel_maker_at(int i);
119const esc_profile_t *esc_stick_panel_row(int i, int *model);
120
123const char *esc_stick_panel_row_why(int i);
124
127int esc_stick_panel_item_at(int i);
128
131const char *esc_stick_panel_row_warn(int i);
132
135const char *esc_stick_panel_result_head(void);
136const char *esc_stick_panel_result_more(void);
137
140const char *esc_stick_panel_left_text(void);
141
144const char *esc_stick_panel_note(void);
145
148
151const char *esc_stick_panel_step_text(const esc_manual_t *m);
152
156const char *esc_stick_panel_hand_why(void);
157
159uint32_t esc_stick_panel_entry_shown(void);
160
166
169
171void esc_stick_panel_lights(bool *red, bool *green);
172
179const char *esc_stick_panel_why_text(const char *why);
180
185int esc_stick_panel_wrap_lines(const char *text, int cells);
Stick programming: an ESC (electronic speed controller) programmed through its throttle-stick menu,...
const char * esc_stick_panel_why_text(const char *why)
Definition esc_stick_list.c:156
const char * esc_stick_panel_step_text(const esc_manual_t *m)
Definition esc_stick_list.c:54
int esc_stick_panel_wrap_lines(const char *text, int cells)
Definition esc_stick_list.c:47
const prog_page_set_t esc_stick_pages
Definition esc_stick_pages.c:252
int esc_stick_panel_stage(void)
Definition esc_stick_pages.c:33
uint32_t esc_stick_panel_entry_shown(void)
Definition esc_stick_panel.c:880
void esc_stick_panel_set_throttle(bool read, uint8_t channels)
Definition esc_stick_panel.c:710
bool esc_stick_panel_supply_reads_off(void)
Definition esc_stick_panel.c:885
void esc_stick_panel_lights(bool *red, bool *green)
Definition esc_stick_panel.c:911
const esc_stick_t * esc_stick_panel_stick(void)
Definition esc_stick_panel.c:784
void esc_stick_panel_supply(const supply_state_t *st)
Definition esc_stick_panel.c:723
const char * esc_stick_panel_row_why(int i)
Definition esc_stick_panel.c:823
const char * esc_stick_panel_row_warn(int i)
Definition esc_stick_panel.c:836
const char * esc_stick_panel_left_text(void)
Definition esc_stick_panel.c:863
uint32_t esc_stick_panel_runs(void)
Definition esc_stick_panel.c:782
const char * esc_stick_panel_result_head(void)
Definition esc_stick_panel.c:845
const esc_profile_t * esc_stick_panel_profile(void)
Definition esc_stick_panel.c:777
const char * esc_stick_panel_hand_why(void)
Definition esc_stick_panel.c:890
const char * esc_stick_panel_note(void)
Definition esc_stick_panel.c:868
const esc_profile_t * esc_stick_panel_page(void)
Definition esc_stick_panel.c:900
int esc_stick_panel_item_at(int i)
Definition esc_stick_panel.c:831
const char * esc_stick_panel_search(void)
Definition esc_stick_panel.c:786
bool esc_stick_panel_poll_cmd(motor_cmd_t *out)
Definition esc_stick_panel.c:765
int esc_stick_panel_listed(int *top)
Definition esc_stick_panel.c:790
void esc_stick_panel_tone(const tone_readout_t *r)
Definition esc_stick_panel.c:716
void esc_stick_panel_bench(uint32_t now_ms, bool armed, uint32_t stops, uint32_t pressed, bool link_up)
Definition esc_stick_panel.c:690
int esc_stick_panel_level(void)
Definition esc_stick_panel.c:798
bool esc_stick_panel_hand_shown(void)
Definition esc_stick_panel.c:906
const ui_keypad_t * esc_stick_panel_keypad(void)
TIMING's keypad, which a tap on a row's value opens over the session's pages; for tests and the rende...
Definition esc_stick_touch.c:190
int esc_stick_panel_keypad_setting(void)
The setting TIMING's open keypad types; for tests.
Definition esc_stick_touch.c:195
The motor and ESC (electronic speed controller) bench screen.
The registry of programmers and runs: one static table that the PROGRAM (and later TEST) lists of a w...
A step a person does at the ESC besides the throttle and the power: fit or pull a jumper,...
Definition esc_profile.h:206
One ESC programming profile: its family, menu and steps.
Definition esc_profile.h:233
State of one stick programming run.
Definition esc_stick.h:587
Definition motor_screen.h:44
Definition prog_registry.h:129
A supply's readings, set points, mode and trip state.
Definition supply.h:69
The screen's copy: a plain value the control task fills and the renderer reads.
Definition tone_link.h:217
A numeric keypad: what it was opened with, what is typed, and the press it holds.
Definition ui_keypad.h:61
A programmable supply: what it can be set to, what it was set to, and what it delivers.
A numeric keypad over part of a screen, for a value a slider is too coarse to place.
Screen router.