Python programs to download?
1241 1 2019-7-18
Uploading and Loding Picture ...(0/1)
o(^-^)o
MarkusXL
lvl.4
United States
Offline

Is there a place to download user Python programs for Robomaster S1?  No yet?  I can't seem to find...

But so as not to have wasted your time, here is a free program to try:

Diag Move Turn Around and Back again (into the exact same start position) with some LED flashings:


def start():
    led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 0, 127, 70, rm_define.effect_always_on)
    led_ctrl.set_flash(rm_define.armor_all, 2)
    led_ctrl.gun_led_on()
    chassis_ctrl.move_with_speed(0.2,0.2,0)
    time.sleep(3)
    chassis_ctrl.move_with_speed(0,0,180)
    time.sleep(1)
    chassis_ctrl.move_with_speed(0.2,0.2,0)
    time.sleep(3)
    chassis_ctrl.move_with_speed(0,0,180)
    time.sleep(1)
    chassis_ctrl.stop()
    led_ctrl.turn_off(rm_define.armor_all)
    led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 255, 193, 0, rm_define.effect_flash)
    time.sleep(5)


2019-7-18
Use props
fansd0c7e9a5
lvl.1
United States
Offline

How did you even find out how to use those functions? There's no programmers guide whatsoever in the manual. Not even a list of functions. It seems to me that the only way to do it is reading DJI's sample code and do reverse-engineering...
2019-7-29
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules