Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
baro_board.c File Reference
#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

◆ baro_event()

◆ baro_init()

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:

◆ baro_periodic()

void baro_periodic ( void  )

Definition at line 88 of file baro_board.c.

◆ baro_read()

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, ev, and TRUE.

Referenced by baro_init().

+ Here is the caller graph for this function:

Variable Documentation

◆ baro_swing_available

bool baro_swing_available
static

Definition at line 38 of file baro_board.c.

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

◆ baro_swing_mutex

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().

◆ baro_swing_raw

int32_t baro_swing_raw
static

Definition at line 39 of file baro_board.c.

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