Auto-doublet-settings (#3302)

This commit is contained in:
Christophe De Wagter
2024-06-12 09:25:34 +02:00
committed by GitHub
parent 4b4ebface9
commit 302695ede3
2 changed files with 20 additions and 4 deletions
+4
View File
@@ -240,6 +240,10 @@
<define name="AUTO_DOUBLETS_ACTUATORS" value="{0,1,2,3}"/>
<define name="AUTO_DOUBLETS_AMPLITUDE" value="{1500,1500,1500,1500}"/>
<define name="AUTO_DOUBLETS_TIME" value="1.0"/>
<define name="AUTO_DOUBLETS_INTERVAL" value="3.0"/>
<define name="AUTO_DOUBLETS_REPEATS" value="4"/>
<define name="CHIRP_AXES" value="{0,1,2,3}"/>
<define name="CHIRP_RADIO_CHANNEL" value="9"/>
</section>
@@ -45,12 +45,24 @@
#error No doublet actuators SYS_ID_AUTO_DOUBLETS_AMPLITUDE defined
#endif
#ifndef SYS_ID_AUTO_DOUBLETS_TIME
#define SYS_ID_AUTO_DOUBLETS_TIME 0.5
#endif
#ifndef SYS_ID_AUTO_DOUBLETS_INTERVAL
#define SYS_ID_AUTO_DOUBLETS_INTERVAL 5.0
#endif
#ifndef SYS_ID_AUTO_DOUBLETS_REPEATS
#define SYS_ID_AUTO_DOUBLETS_REPEATS 5
#endif
uint8_t sys_id_auto_doublets_actuators[SYS_ID_AUTO_DOUBLETS_N_ACTUATORS] = SYS_ID_AUTO_DOUBLETS_ACTUATORS;
int16_t sys_id_auto_doublets_amplitude[SYS_ID_AUTO_DOUBLETS_N_ACTUATORS] = SYS_ID_AUTO_DOUBLETS_AMPLITUDE;
float sys_id_auto_doublets_time = 0.5; // time of one doublet
float sys_id_auto_doublets_interval_time = 5.; // time interval for doublets
int8_t sys_id_auto_doublets_n_repeat = 5; // The number of times a doublet has to be repeated on a single actuator
float sys_id_auto_doublets_time = SYS_ID_AUTO_DOUBLETS_TIME; // time of one doublet
float sys_id_auto_doublets_interval_time = SYS_ID_AUTO_DOUBLETS_INTERVAL; // time interval for doublets
int8_t sys_id_auto_doublets_n_repeat = SYS_ID_AUTO_DOUBLETS_REPEATS; // The number of times a doublet has to be repeated on a single actuator
bool sys_id_auto_doublets_activated = false;
@@ -152,4 +164,4 @@ void sys_id_auto_doublets_on_deactivation(void)
sys_id_auto_doublets_timer = 0;
sys_id_auto_doublets_counter = 0;
doublet_amplitude = 0;
}
}