Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
actuators_uavcan1cmd.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Freek van Tienen <freek.v.tienen@gmail.com>
3
*
4
* This file is part of Paparazzi.
5
*
6
* Paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* Paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Paparazzi; see the file COPYING. If not, write to
18
* the Free Software Foundation, 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*/
21
22
#ifndef ACTUATORS_UAVCAN1_CMD_H
23
#define ACTUATORS_UAVCAN1_CMD_H
24
25
#include "
actuators_uavcan.h
"
26
28
extern
int16_t
actuators_uavcan1cmd_values
[SERVOS_UAVCAN1CMD_NB];
29
30
#if USE_NPS
31
#define ActuatorsUavcan1CmdInit() {}
32
#define ActuatorUavcan1CmdSet(_i, _v) {}
33
#define ActuatorsUavcan1CmdCommit() {}
34
#else
35
#define ActuatorsUavcan1CmdInit() actuators_uavcan_init(&uavcan1)
36
#define ActuatorUavcan1CmdSet(_i, _v) { actuators_uavcan1cmd_values[_i] = _v; }
37
#define ActuatorsUavcan1CmdCommit() RunOnceEvery(ACTUATORS_UAVCAN_CMD_DIV,actuators_uavcan_cmd_commit(&uavcan1, actuators_uavcan1cmd_values, SERVOS_UAVCAN1CMD_NB))
38
#endif
39
40
#endif
/* ACTUATORS_UAVCAN1_CMD_H */
actuators_uavcan1cmd_values
int16_t actuators_uavcan1cmd_values[SERVOS_UAVCAN1CMD_NB]
Stub file needed per uavcan interface because of generator.
actuators_uavcan.h
int16_t
short int16_t
Typedef defining 16 bit short type.
Definition:
vl53l1_types.h:93
sw
airborne
modules
actuators
actuators_uavcan1cmd.h
Generated on Fri Nov 8 2024 14:10:45 for Paparazzi UAS by
1.9.1