Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Macros | |
#define | ENOSE_NB_SENSOR 3 |
#define | ENOSE_IDLE 0 |
#define | ENOSE_SETTINGS 1 |
#define | ENOSE_MEASURING_WR 2 |
#define | ENOSE_MEASURING_RD 3 |
#define | enose_SetHeat0(val) {enose_set_heat(0, val);} |
#define | enose_SetHeat1(val) {enose_set_heat(1, val);} |
#define | enose_SetHeat2(val) {enose_set_heat(2, val);} |
#define | enose_DecreaseVal0(_x) { enose_val[0] -= _x; } |
#define | enose_DecreaseVal1(_x) { enose_val[1] -= _x; } |
#define | enose_DecreaseVal2(_x) { enose_val[2] -= _x; } |
Functions | |
void | enose_init (void) |
void | enose_set_heat (uint8_t no_sensor, uint8_t value) |
void | enose_periodic (void) |
Variables | |
uint8_t | enose_heat [ENOSE_NB_SENSOR] |
uint16_t | enose_val [ENOSE_NB_SENSOR] |
uint16_t | enose_PID_val |
uint8_t | enose_status |
#define ENOSE_IDLE 0 |
Definition at line 12 of file enose.h.
Referenced by enose_init(), and enose_periodic().
#define ENOSE_MEASURING_RD 3 |
Definition at line 15 of file enose.h.
Referenced by enose_periodic().
#define ENOSE_MEASURING_WR 2 |
Definition at line 14 of file enose.h.
Referenced by enose_periodic().
#define ENOSE_NB_SENSOR 3 |
Definition at line 6 of file enose.h.
Referenced by chemo_periodic(), enose_init(), and enose_periodic().
#define enose_SetHeat0 | ( | val | ) | {enose_set_heat(0, val);} |
#define enose_SetHeat1 | ( | val | ) | {enose_set_heat(1, val);} |
#define enose_SetHeat2 | ( | val | ) | {enose_set_heat(2, val);} |
void enose_init | ( | void | ) |
Definition at line 11 of file sim_enose.c.
References adc_buf_channel(), buf_PID, enose_conf_requested, enose_heat, ENOSE_HEAT_INIT, enose_i2c_done, ENOSE_IDLE, ENOSE_NB_SENSOR, enose_status, enose_val, nominal_val, and TRUE.
void enose_periodic | ( | void | ) |
Definition at line 19 of file sim_enose.c.
References adc_buf::av_nb_sample, buf_PID, DefaultChannel, DefaultDevice, enose_conf_requested, ENOSE_DATA_ADDR, enose_heat, enose_i2c_done, ENOSE_IDLE, ENOSE_MEASURING_RD, ENOSE_MEASURING_WR, ENOSE_NB_SENSOR, enose_PID_val, ENOSE_PWM_ADDR, ENOSE_SLAVE_ADDR, enose_status, enose_val, FALSE, min_val, msg, nominal_val, adc_buf::sum, and val.
Definition at line 18 of file sim_enose.c.
References enose_conf_requested, enose_heat, TRUE, and value.
uint8_t enose_heat[ENOSE_NB_SENSOR] |
Definition at line 4 of file sim_enose.c.
Referenced by enose_init(), enose_periodic(), and enose_set_heat().
uint16_t enose_PID_val |
Definition at line 6 of file sim_enose.c.
Referenced by enose_periodic().
uint8_t enose_status |
Definition at line 3 of file sim_enose.c.
Referenced by enose_init(), and enose_periodic().
uint16_t enose_val[ENOSE_NB_SENSOR] |
Definition at line 5 of file sim_enose.c.
Referenced by chemo_periodic(), enose_init(), and enose_periodic().