mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 03:21:36 +08:00
Set Tune's Volume for Power-Off in Commander to default volume of tune_control message
This commit is contained in:
committed by
Daniel Agar
parent
8df3932d6a
commit
af839c828d
@@ -96,7 +96,7 @@ static orb_advert_t tune_control_pub = nullptr;
|
|||||||
static void play_power_button_down_tune()
|
static void play_power_button_down_tune()
|
||||||
{
|
{
|
||||||
tune_control_s tune_control{};
|
tune_control_s tune_control{};
|
||||||
tune_control.volume = tune_control_s::VOLUME_LEVEL_DEFAULT - 20;
|
tune_control.volume = tune_control_s::VOLUME_LEVEL_DEFAULT;
|
||||||
tune_control.tune_id = tune_control_s::TUNE_ID_POWER_OFF;
|
tune_control.tune_id = tune_control_s::TUNE_ID_POWER_OFF;
|
||||||
tune_control.timestamp = hrt_absolute_time();
|
tune_control.timestamp = hrt_absolute_time();
|
||||||
orb_publish(ORB_ID(tune_control), tune_control_pub, &tune_control);
|
orb_publish(ORB_ID(tune_control), tune_control_pub, &tune_control);
|
||||||
|
|||||||
Reference in New Issue
Block a user