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

INS temperature control on pwm 6 for Bebop2, pwm 10 for DISCO. More...

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include "std.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "imu_temp_ctrl.h"
+ Include dependency graph for imu_temp_ctrl.c:

Go to the source code of this file.

Macros

#define PWM_HEAT_CHAN   PWM_HEAT_CHAN_DISCO
 

Functions

void imu_temp_ctrl_periodic (void)
 
void imu_temp_ctrl_init (void)
 

Variables

uint8_t imu_temp_ctrl_ok = 0
 
int pwm_heat_duty_fd = 0
 

Detailed Description

INS temperature control on pwm 6 for Bebop2, pwm 10 for DISCO.

Controls the heating resistors in the Bebop2 to keep the MPU6050 gyro/accel INS sensors at a constant temperature

Definition in file imu_temp_ctrl.c.

Macro Definition Documentation

#define PWM_HEAT_CHAN   PWM_HEAT_CHAN_DISCO

Definition at line 47 of file imu_temp_ctrl.c.

Referenced by imu_temp_ctrl_init().

Function Documentation

void imu_temp_ctrl_init ( void  )

Definition at line 92 of file imu_temp_ctrl.c.

References imu_temp_ctrl_ok, PWM_HEAT_CHAN, and pwm_heat_duty_fd.

Variable Documentation

uint8_t imu_temp_ctrl_ok = 0

Definition at line 41 of file imu_temp_ctrl.c.

Referenced by imu_temp_ctrl_init(), and imu_temp_ctrl_periodic().

int pwm_heat_duty_fd = 0

Definition at line 42 of file imu_temp_ctrl.c.

Referenced by imu_temp_ctrl_init(), and imu_temp_ctrl_periodic().