From f62950ca718b210d7d8d69d73e1835131c6d3b04 Mon Sep 17 00:00:00 2001 From: eyad-tii Date: Wed, 19 Jun 2024 16:30:14 +0400 Subject: [PATCH 1/2] updated bunker mini num of cells and flight modes to all rovers --- .../init.d/airframes/50005_ssrc_scout_mini_rover | 7 +++++++ .../init.d/airframes/50006_ssrc_bunker_rover | 7 +++++++ .../init.d/airframes/50007_ssrc_bunker_mini_rover | 9 ++++++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover b/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover index f0ebcf96f368..4bcccd549ceb 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover @@ -101,3 +101,10 @@ param set-default COM_RC_OVERRIDE 0 # Set default logfile encryption key indecies param set-default SDLOG_EXCH_KEY 2 param set-default SDLOG_KEY 3 + +# Set default flight modes +param set-default RC_MAP_FLTMODE 5 +param set-default COM_FLTMODE4 2 +param set-default COM_FLTMODE6 0 +param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_KILL_SW 7 diff --git a/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover b/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover index cfce96cc0ab4..c7b6cf493c4f 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover @@ -101,3 +101,10 @@ param set-default COM_RC_OVERRIDE 0 # Set default logfile encryption key indecies param set-default SDLOG_EXCH_KEY 2 param set-default SDLOG_KEY 3 + +# Set default flight modes +param set-default RC_MAP_FLTMODE 5 +param set-default COM_FLTMODE4 2 +param set-default COM_FLTMODE6 0 +param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_KILL_SW 7 diff --git a/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover b/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover index 2005a6f961a5..7459c6ce33d7 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover @@ -18,7 +18,7 @@ param set-default RI_ROVER_TYPE 6 param set-default RI_MAN_SPD_SC 1.0 # Battery setting -param set-default BAT1_N_CELLS 14 +param set-default BAT1_N_CELLS 7 param set-default BAT1_V_EMPTY 3.3 param set-default BAT1_V_CHARGED 4.2 @@ -101,3 +101,10 @@ param set-default COM_RC_OVERRIDE 0 # Set default logfile encryption key indecies param set-default SDLOG_EXCH_KEY 2 param set-default SDLOG_KEY 3 + +# Set default flight modes +param set-default RC_MAP_FLTMODE 5 +param set-default COM_FLTMODE4 2 +param set-default COM_FLTMODE6 0 +param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_KILL_SW 7 From d0a9bfb1e4fa7e268048518bafb328e7917304e5 Mon Sep 17 00:00:00 2001 From: eyad-tii Date: Wed, 19 Jun 2024 16:46:07 +0400 Subject: [PATCH 2/2] removed tab --- .../px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover | 2 +- ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover | 2 +- .../px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover b/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover index 4bcccd549ceb..c3df57c41829 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50005_ssrc_scout_mini_rover @@ -106,5 +106,5 @@ param set-default SDLOG_KEY 3 param set-default RC_MAP_FLTMODE 5 param set-default COM_FLTMODE4 2 param set-default COM_FLTMODE6 0 -param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_ARM_SW 8 param set-default RC_MAP_KILL_SW 7 diff --git a/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover b/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover index c7b6cf493c4f..784bfe40d5df 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50006_ssrc_bunker_rover @@ -106,5 +106,5 @@ param set-default SDLOG_KEY 3 param set-default RC_MAP_FLTMODE 5 param set-default COM_FLTMODE4 2 param set-default COM_FLTMODE6 0 -param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_ARM_SW 8 param set-default RC_MAP_KILL_SW 7 diff --git a/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover b/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover index 7459c6ce33d7..83839645c7e4 100644 --- a/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover +++ b/ROMFS/px4fmu_common/init.d/airframes/50007_ssrc_bunker_mini_rover @@ -106,5 +106,5 @@ param set-default SDLOG_KEY 3 param set-default RC_MAP_FLTMODE 5 param set-default COM_FLTMODE4 2 param set-default COM_FLTMODE6 0 -param set-default RC_MAP_ARM_SW 8 +param set-default RC_MAP_ARM_SW 8 param set-default RC_MAP_KILL_SW 7