Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
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, and nominal_val.
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, min_val, msg, nominal_val, adc_buf::sum, and val.
Definition at line 18 of file sim_enose.c.
References enose_conf_requested, and enose_heat.
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().