From 03aa2dd46cda19328ea901970fa69a9680690bca Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 4 Nov 2020 11:43:20 -0500 Subject: [PATCH] ROMFS: create NXP HoverGames airframe (SYS_AUTOSTART 4017) Co-authored-by: igalloway --- .../init.d/airframes/4017_nxp_hovergames | 39 +++++++++++++++++++ .../init.d/airframes/CMakeLists.txt | 1 + 2 files changed, 40 insertions(+) create mode 100644 ROMFS/px4fmu_common/init.d/airframes/4017_nxp_hovergames diff --git a/ROMFS/px4fmu_common/init.d/airframes/4017_nxp_hovergames b/ROMFS/px4fmu_common/init.d/airframes/4017_nxp_hovergames new file mode 100644 index 0000000000..d3dae3901e --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/airframes/4017_nxp_hovergames @@ -0,0 +1,39 @@ +#!/bin/sh +# +# @name NXP HoverGames +# +# @type Quadrotor x +# @class Copter +# +# @output MAIN1 motor 1 +# @output MAIN2 motor 2 +# @output MAIN3 motor 3 +# @output MAIN4 motor 4 +# +# @board px4_fmu-v2 exclude +# @board bitcraze_crazyflie exclude +# +# @maintainer Iain Galloway +# + +. ${R}etc/init.d/rc.mc_defaults + +set MIXER quad_x +set PWM_OUT 1234 + +if [ $AUTOCNF = yes ] +then + + param set IMU_GYRO_CUTOFF 40 + param set IMU_DGYRO_CUTOFF 20 + param set IMU_GYRO_RATEMAX 400 + + param set MC_ROLLRATE_P 0.18 + param set MC_ROLLRATE_I 0.15 + param set MC_ROLLRATE_D 0.003 + + param set MC_PITCHRATE_P 0.18 + param set MC_PITCHRATE_I 0.15 + param set MC_PITCHRATE_D 0.003 + +fi diff --git a/ROMFS/px4fmu_common/init.d/airframes/CMakeLists.txt b/ROMFS/px4fmu_common/init.d/airframes/CMakeLists.txt index 783a3fecdd..0efe0357a4 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/CMakeLists.txt +++ b/ROMFS/px4fmu_common/init.d/airframes/CMakeLists.txt @@ -69,6 +69,7 @@ px4_add_romfs_files( 4014_s500 4015_holybro_s500 4016_holybro_px4vision + 4017_nxp_hovergames 4020_hk_micro_pcb 4030_3dr_solo 4031_3dr_quad