rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
balance_screen.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "ui_keypad.h"
11#include "ui_screen.h"
12
13typedef enum {
14 BALANCE_PANE_MEASURE = 0,
15 BALANCE_PANE_RIG,
16 BALANCE_PANE_AIRCRAFT,
17 BALANCE_PANE_COUNT,
18} balance_pane_t;
19
20typedef enum { ROTOR_PROP = 0, ROTOR_EDF, ROTOR_COUNT } balance_rotor_t;
21
23void balance_invalidate(void);
24
25const ui_screen_t *balance_screen(void);
26
28int balance_screen_blades(void);
30int balance_screen_rotor(void);
31
38
45
48const char *balance_screen_model_mark(void);
51const char *balance_screen_model_note(void);
52
58void balance_nearest_blades(float angle, int blades, int *lo, int *hi);
gfx_rect_t balance_screen_blades_rect(void)
Where the blade count is drawn and tapped, in the screen's coordinates: between BLADES and the "-" ke...
Definition balance_screen.c:204
const char * balance_screen_model_note(void)
Definition balance_screen.c:283
const char * balance_screen_model_mark(void)
Definition balance_screen.c:278
const ui_keypad_t * balance_screen_keypad(void)
The keypad a tap on the blade count opens over both cards, for tests and the renderer.
Definition balance_screen.c:202
int balance_screen_rotor(void)
Definition balance_screen.c:200
int balance_screen_blades(void)
Definition balance_screen.c:199
void balance_nearest_blades(float angle, int blades, int *lo, int *hi)
Definition balance_screen.c:712
void balance_invalidate(void)
Definition balance_screen.c:166
Definition gfx.h:81
A numeric keypad: what it was opened with, what is typed, and the press it holds.
Definition ui_keypad.h:61
Definition ui_screen.h:68
A numeric keypad over part of a screen, for a value a slider is too coarse to place.
Screen router.