Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/energy/MPPT.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
Go to the source code of this file.
Functions | |
void | MPPT_init (void) |
void | MPPT_periodic (void) |
Variables | |
uint8_t | MPPT_mode |
0: VBat (mV) 1: IBat (mA) 2: PBat (mW) 3: VSol (mV) 4: ISol (mA) 5: PSol (mW) 6: IConv (mA) 7: PConv (mW) More... | |
static int16_t | MPPT_data [NB_DATA] |
void MPPT_init | ( | void | ) |
Definition at line 34 of file sim_MPPT.c.
References MPPT_data, MPPT_mode, MPPT_status, MPPT_STATUS_IDLE, and NB_DATA.
void MPPT_periodic | ( | void | ) |
Definition at line 43 of file sim_MPPT.c.
References i2c_transaction::buf, data_index, DefaultChannel, DefaultDevice, i2c_receive(), i2c_transmit(), I2CTransSuccess, MPPT_ask(), MPPT_data, MPPT_IBAT_INDEX, MPPT_ICONV_INDEX, MPPT_ITOTAL_INDEX, MPPT_mode, MPPT_MODE_ADDR, MPPT_SLAVE_ADDR, MPPT_status, MPPT_STATUS_ASKING, MPPT_STATUS_IDLE, MPPT_STATUS_READING, MPPT_STATUS_WRITING, mppt_trans, NB_DATA, NB_I2C_DATA, and i2c_transaction::status.
Definition at line 32 of file sim_MPPT.c.
Referenced by MPPT_init(), and MPPT_periodic().
uint8_t MPPT_mode |
0: VBat (mV) 1: IBat (mA) 2: PBat (mW) 3: VSol (mV) 4: ISol (mA) 5: PSol (mW) 6: IConv (mA) 7: PConv (mW)
9: IBat + IConv
Definition at line 30 of file sim_MPPT.c.