Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_board.c File Reference

Paparazzi Swing Baro Sensor implementation. More...

#include "subsystems/sensors/baro.h"
#include "subsystems/abi.h"
#include "baro_board.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <linux/input.h>
+ Include dependency graph for baro_board.c:

Go to the source code of this file.

Functions

static void * baro_read (void *data)
 Check baro thread TODO something better ? More...
 
void baro_init (void)
 
void baro_periodic (void)
 
void baro_event (void)
 

Variables

static bool baro_swing_available
 
static int32_t baro_swing_raw
 
static pthread_mutex_t baro_swing_mutex = PTHREAD_MUTEX_INITIALIZER
 

Detailed Description

Paparazzi Swing Baro Sensor implementation.

Sensor is LPS22HB (I2C) from ST but is accessed through sysfs interface

Definition in file baro_board.c.

Function Documentation

void baro_init ( void  )

Definition at line 74 of file baro_board.c.

References baro_read(), baro_swing_available, and baro_swing_raw.

+ Here is the call graph for this function:

void baro_periodic ( void  )

Definition at line 88 of file baro_board.c.

static void* baro_read ( void *  data)
static

Check baro thread TODO something better ?

Definition at line 46 of file baro_board.c.

References baro_swing_available, baro_swing_mutex, baro_swing_raw, and TRUE.

Referenced by baro_init().

+ Here is the caller graph for this function:

Variable Documentation

bool baro_swing_available
static

Definition at line 38 of file baro_board.c.

Referenced by baro_event(), baro_init(), and baro_read().

pthread_mutex_t baro_swing_mutex = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 40 of file baro_board.c.

Referenced by baro_event(), and baro_read().

int32_t baro_swing_raw
static

Definition at line 39 of file baro_board.c.

Referenced by baro_event(), baro_init(), and baro_read().