Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nps_ins.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Antoine Drouin <poinix@gmail.com>
3  * Copyright (C) 2012 The Paparazzi Team
4  * Copyright (C) 2016 Michal Podhradsky <http://github.com/podhrmic>
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 #ifndef NPS_INS_H
24 #define NPS_INS_H
25 
26 #include "std.h"
27 #include "nps_fdm.h"
28 
29 // if undefined, match with control frequency because that is how it should be used
30 #ifndef INS_FREQUENCY
31 #ifdef CONTROL_FREQUENCY
32 #define INS_FREQUENCY CONTROL_FREQUENCY
33 #else
34 #define INS_FREQUENCY PERIODIC_FREQUENCY
35 #endif
36 #endif
37 
38 extern uint8_t *ins_buffer;
39 
40 extern void nps_ins_init(void);
41 void nps_ins_fetch_data(struct NpsFdm *fdm_ins);
43 
44 #endif /* NPS_INS_H */
unsigned short uint16_t
Definition: types.h:16
Definition: nps_fdm.h:44
uint8_t * ins_buffer
void nps_ins_init(void)
void nps_ins_fetch_data(struct NpsFdm *fdm_ins)
Fetch data from FDM and store them into vectornav packet NOTE: some noise is being added...
unsigned char uint8_t
Definition: types.h:14
uint16_t nps_ins_fill_buffer(void)