From 06cb3e4d78f34686e43f91001ad244a84a772dfd Mon Sep 17 00:00:00 2001 From: Gautier Hattenberger Date: Fri, 21 Aug 2020 15:52:09 +0200 Subject: [PATCH] [actuator] add dummy file for simulation with dshot driver --- .../modules/actuators/actuators_dshot_arch.c | 35 +++++++++++++++++++ .../modules/actuators/actuators_dshot_arch.h | 32 +++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.c create mode 100644 sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.h diff --git a/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.c b/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.c new file mode 100644 index 0000000000..057e213ab1 --- /dev/null +++ b/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.c @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2019 Gautier Hattenberger + * + * This file is part of paparazzi + * + * paparazzi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * paparazzi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with paparazzi; see the file COPYING. If not, see + * . + */ + +/** + * @file "modules/actuators/actuators_dshot_arch.c" + * @author Gautier Hattenberger + * Simulation driver for DSHOT speed controller protocol + * Arch dependent part + */ + +#include "modules/actuators/actuators_dshot.h" + +uint16_t actuators_dshot_values[ACTUATORS_DSHOT_NB]; + +void actuators_dshot_arch_init(void) {} + +void actuators_dshot_arch_commit(void) {} + diff --git a/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.h b/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.h new file mode 100644 index 0000000000..8b3531c1d2 --- /dev/null +++ b/sw/airborne/arch/sim/modules/actuators/actuators_dshot_arch.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 Gautier Hattenberger + * + * This file is part of paparazzi + * + * paparazzi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * paparazzi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with paparazzi; see the file COPYING. If not, see + * . + */ + +/** + * @file "modules/actuators/actuators_dshot_arch.h" + * @author Gautier Hattenberger + * Simulation driver for DSHOT speed controller protocol + * Arch dependent part + */ + +#ifndef ACTUATORS_DSHOT_H +#define ACTUATORS_DSHOT_H + + +#endif /* ACTUATORS_DSHOT_ARCH_H */