Skyward boardcore
Loading...
Searching...
No Matches
NASConfig.h
Go to the documentation of this file.
1/* Copyright (c) 2022 Skyward Experimental Rocketry
2 * Author: Alberto Nidasio
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
25#include <Eigen/Dense>
26
27namespace Boardcore
28{
29
31{
32 float T;
33 float SIGMA_BETA;
34 float SIGMA_W;
35 float SIGMA_ACC;
36 float SIGMA_MAG;
37 Eigen::Vector4f SIGMA_GPS;
40 float SIGMA_BAR;
41 float SIGMA_POS;
42 float SIGMA_VEL;
44
45 float P_POS;
47
48 float P_VEL;
50
51 float P_ATT;
52 float P_BIAS;
53
54 float SATS_NUM = 6.0f;
55
56 Eigen::Vector3f NED_MAG;
57};
58
59} // namespace Boardcore
This file includes all the types the logdecoder script will decode.
float T
[s] Sample period
Definition NASConfig.h:32
float SATS_NUM
Number of satellites used at setup time.
Definition NASConfig.h:54
float SIGMA_ACC
[m/s^2] Estimated accelerometer variance
Definition NASConfig.h:35
Eigen::Vector4f SIGMA_GPS
Definition NASConfig.h:37
float SIGMA_PITOT
[Pa] Estimated variance of the pitot velocity
Definition NASConfig.h:43
float SIGMA_POS
[m] Estimated variance of the position noise
Definition NASConfig.h:41
float P_ATT
Attitude prediction covariance.
Definition NASConfig.h:51
float P_POS
Position prediction covariance horizontal.
Definition NASConfig.h:45
float SIGMA_BETA
[rad/s^2] Estimated gyroscope bias variance
Definition NASConfig.h:33
float P_BIAS
Bias prediction covariance.
Definition NASConfig.h:52
Eigen::Vector3f NED_MAG
Normalized magnetic field vector in NED frame.
Definition NASConfig.h:56
float SIGMA_W
[rad] Estimated gyroscope variance
Definition NASConfig.h:34
float P_POS_VERTICAL
Position prediction covariance vertical.
Definition NASConfig.h:46
float SIGMA_VEL
[m/s] Estimated variance of the velocity noise
Definition NASConfig.h:42
float SIGMA_MAG
[uT] Estimated magnetometer variance
Definition NASConfig.h:36
float P_VEL
Velocity prediction covariance horizontal.
Definition NASConfig.h:48
float SIGMA_BAR
[Pa] Estimated altitude variance
Definition NASConfig.h:40
float P_VEL_VERTICAL
Velocity prediction covariance vertical.
Definition NASConfig.h:49