EasyManua.ls Logo

dji Robomaster EP Core - Page 99

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...
98
“play sound” refers to simultaneous execution of the music and the next command, similar to a musical accompaniment;
“play sound until finished” refers to the execution of playing sound and following commands one by one, similar to a musical
solo (for example, it does not dance until the sound finishes playing).
Python API:
Function: media_ctrl.play_sound(sound_enum, wait_complete_flag=True)
Parameters:
● sound_enum(enum):
■ rm_define.media_sound_attacked
■ rm_define.media_sound_shoot
■ rm_define.media_sound_scanning
■ rm_define.media_recognize_success
■ rm_define.media_gimbal_rotate
■ rm_define.media_count_down
4. Play customized audio (select audio)
(1) Description: Play inserted customized audio
(2) Type: Execution, Non-blocking block
(3) Example: play music clip
Note:
Please add a wait command after playing the customized audio, otherwise the audio will be not be played in full.