-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathairspeed-indicator.h
More file actions
32 lines (24 loc) · 865 Bytes
/
Copy pathairspeed-indicator.h
File metadata and controls
32 lines (24 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* SPDX-FileCopyrightText: 2021 Samuel Cuella <samuel.cuella@gmail.com>
*
* This file is part of SoFIS - an open source EFIS
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#ifndef AIRSPEED_INDICATOR_H
#define AIRSPEED_INDICATOR_H
#include "base-gauge.h"
#include "tape-gauge.h"
#include "text-gauge.h"
#include "airspeed-page-descriptor.h"
#define RHO_0 1.225 /* kg/m3, Sea level ISA */
typedef struct{
BaseGauge super;
TapeGauge *tape;
TextGauge *txt;
int tas;
}AirspeedIndicator;
AirspeedIndicator *airspeed_indicator_new(speed_t v_so, speed_t v_s1,speed_t v_fe,speed_t v_no,speed_t v_ne);
AirspeedIndicator *airspeed_indicator_init(AirspeedIndicator *self, speed_t v_so, speed_t v_s1,speed_t v_fe,speed_t v_no,speed_t v_ne);
bool airspeed_indicator_set_value(AirspeedIndicator *self, float value);
#endif /* AIRSPEED_INDICATOR_H */