Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
actuators_pwm_arch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013 AggieAir, A Remote Sensing Unmanned Aerial System for Scientific Applications
3
* Utah State University, http://aggieair.usu.edu/
4
*
5
* Michal Podhradsky (michal.podhradsky@aggiemail.usu.edu)
6
* Calvin Coopmans (c.r.coopmans@ieee.org)
7
*
8
*
9
* This file is part of paparazzi.
10
*
11
* paparazzi is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2, or (at your option)
14
* any later version.
15
*
16
* paparazzi is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with paparazzi; see the file COPYING. If not, write to
23
* the Free Software Foundation, 59 Temple Place - Suite 330,
24
* Boston, MA 02111-1307, USA.
25
*/
33
#ifndef ACTUATORS_PWM_ARCH_H
34
#define ACTUATORS_PWM_ARCH_H
35
36
#include "
std.h
"
37
#include "hal.h"
38
39
#include BOARD_CONFIG
40
41
#ifndef ACTUATORS_PWM_NB
42
#define ACTUATORS_PWM_NB 8
43
#endif
44
45
extern
int32_t
actuators_pwm_values
[
ACTUATORS_PWM_NB
];
46
47
extern
void
actuators_pwm_commit
(
void
);
48
49
#define ActuatorPwmSet(_i, _v) { actuators_pwm_values[_i] = _v; }
50
#define ActuatorsPwmCommit actuators_pwm_commit
51
52
#endif
/* ACTUATORS_PWM_ARCH_H */
actuators_pwm_values
int32_t actuators_pwm_values[ACTUATORS_PWM_NB]
Definition:
actuators_pwm_arch.c:92
ACTUATORS_PWM_NB
#define ACTUATORS_PWM_NB
Definition:
actuators_pwm_arch.h:42
actuators_pwm_commit
void actuators_pwm_commit(void)
Set pulse widths from actuator values, assumed to be in us.
Definition:
actuators_pwm_arch.c:377
std.h
int32_t
int int32_t
Typedef defining 32 bit int type.
Definition:
vl53l1_types.h:83
sw
airborne
arch
chibios
modules
actuators
actuators_pwm_arch.h
Generated on Fri Nov 8 2024 14:10:44 for Paparazzi UAS by
1.9.1