Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_temp_ctrl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 The Paparazzi team
3  * based on code from the Ardupilot project
4  *
5  * This file is part of paparazzi.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
31 #ifndef IMU_TEMP_CTRL_H
32 #define IMU_TEMP_CTRL_H
33 
34 #include "std.h"
35 
36 void imu_temp_ctrl_init(void);
37 void imu_temp_ctrl_periodic(void);
38 
39 #define IMU_TEMP_CTRL_DUTY_MAX 125000
40 
41 #ifndef IMU_TEMP_TARGET
42 #define IMU_TEMP_TARGET 50
43 #endif
44 
45 #define IMU_TEMP_CTRL_KP 20000
46 #define IMU_TEMP_CTRL_KI 60
47 
48 #define PWM_HEAT_CHAN_BEBOP2 6
49 #define PWM_HEAT_CHAN_DISCO 10
50 
51 #endif /* IMU_TEMP_CTRL_H */
void imu_temp_ctrl_periodic(void)
Definition: imu_temp_ctrl.c:52
void imu_temp_ctrl_init(void)
Definition: imu_temp_ctrl.c:92