From 860b23dd17350f4b94e5f28052f4954c7edbc9ee Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 28 Sep 2021 11:32:05 +0200 Subject: [PATCH] tunes: add tune to power off This is used by the ATL Mantis EDU to help the user realize when the drone is powered off. --- msg/tune_control.msg | 3 ++- src/lib/tunes/tune_definition.desc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/msg/tune_control.msg b/msg/tune_control.msg index dba37757d2..6746cf76da 100644 --- a/msg/tune_control.msg +++ b/msg/tune_control.msg @@ -22,7 +22,8 @@ uint8 TUNE_ID_SD_ERROR = 15 uint8 TUNE_ID_PROG_PX4IO = 16 uint8 TUNE_ID_PROG_PX4IO_OK = 17 uint8 TUNE_ID_PROG_PX4IO_ERR = 18 -uint8 NUMBER_OF_TUNES = 19 +uint8 TUNE_ID_POWER_OFF = 19 +uint8 NUMBER_OF_TUNES = 20 uint8 tune_id # tune_id corresponding to TuneID::* from the tune_defaults.h in the tunes library bool tune_override # if true the tune which is playing will be stopped and the new started diff --git a/src/lib/tunes/tune_definition.desc b/src/lib/tunes/tune_definition.desc index 1219afec1e..db4ee927e7 100644 --- a/src/lib/tunes/tune_definition.desc +++ b/src/lib/tunes/tune_definition.desc @@ -104,3 +104,4 @@ PX4_DEFINE_TUNE(15, SD_ERROR, "MNBG", PX4_DEFINE_TUNE(16, PROG_PX4IO, "MLL32CP8MB", false /* Program PX4IO */) PX4_DEFINE_TUNE(17, PROG_PX4IO_OK, "MLL8CDE", false /* Program PX4IO success */) PX4_DEFINE_TUNE(18, PROG_PX4IO_ERR, "ML<