Skyward boardcore
Loading...
Searching...
No Matches
AirBrakesPIConfig.h
Go to the documentation of this file.
1/* Copyright (c) 2022 Skyward Experimental Rocketry
2 * Authors: Alberto Nidasio, Emilio Corigliano
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22
23#pragma once
24
25namespace Boardcore
26{
27
29{
30 // Coefficient of drag coefficients.
31 float N000;
32 float N100;
33 float N200;
34 float N300;
35 float N400;
36 float N500;
37 float N600;
38 float N010;
39 float N020;
40 float N110;
41 float N120;
42 float N210;
43 float N220;
44 float N310;
45 float N320;
46 float N410;
47 float N420;
48 float N510;
49 float N520;
50 float N001;
51
52 // Aibrakes extension.
53 float EXTENSION;
54 uint8_t DRAG_STEPS;
55 float EXT_POL_1;
56 float EXT_POL_2;
57 float EXT_POL_3;
58 float EXT_POL_4;
59
60 float S0;
61 float SURFACE;
62
63 // PI parameters
64 float KP;
65 float KI;
66 float TS;
67};
68
69} // namespace Boardcore
This file includes all the types the logdecoder script will decode.
float S0
Rocket surface [m^2].
float SURFACE
AirBrakes max surface [m^2].