EasyManua.ls Logo

dji Robomaster EP Core - Page 97

dji Robomaster EP Core
152 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
96
2. Play sound effect (hit)
(1) Description: Set the EP CORE to emit a sound and executes the next command
(2) Type: Execution, Non-blocking block
(3) Example: Hit indicator
If the armor on either side of the chassis is attacked, it will play the hit sound effect.
Python API:
Function: media_ctrl.play_sound(sound_enum, wait_complete_flag=False)
Parameters:
● sound_enum(enum):
■ rm_define.media_sound_attacked
■ rm_define.media_sound_shoot
■ rm_define.media_sound_scanning
■ rm_define.media_sound_recognize_success
■ rm_define.media_sound_gimbal_rotate
■ rm_define.media_sound_count_down