Spookymike
lvl.4
Germany
Offline
|
Sorry i don´t get it
I clicked together some blocks in the R-App just to see the App internal Pyhon conversion.
But nothing in this code i can find anywhere in the modules of the Python SDK :-(
robot_ctrl.set_mode(rm_define.robot_mode_free)
chassis_ctrl.move_with_speed(0.5,0,0)
led_ctrl.set_flash(rm_define.armor_all, 2)
led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 69, 215, 255, rm_define.effect_always_on)
led_ctrl.set_top_led(rm_define.armor_top_all, 69, 215, 255, rm_define.effect_always_on)
led_ctrl.set_single_led(rm_define.armor_top_all, 1, rm_define.effect_always_on)
led_ctrl.turn_off(rm_define.armor_all)
led_ctrl.gun_led_on()
chassis_ctrl.set_pwm_value(rm_define.pwm_all, 7.5)
chassis_ctrl.enable_stick_overlay()
chassis_ctrl.set_follow_gimbal_offset(0)
chassis_ctrl.set_trans_speed(0.5)
chassis_ctrl.set_rotate_speed(30)
chassis_ctrl.set_wheel_speed(100,100,100,100)
chassis_ctrl.move(0)
chassis_ctrl.move_with_time(0,1)
chassis_ctrl.move_with_distance(0,1)
chassis_ctrl.move_degree_with_speed(0.5,0)
chassis_ctrl.rotate(rm_define.clockwise)
chassis_ctrl.rotate_with_time(rm_define.clockwise, 1)
chassis_ctrl.rotate_with_degree(rm_define.clockwise,0)
chassis_ctrl.rotate_with_speed(rm_define.clockwise,30)
chassis_ctrl.move_and_rotate(0, rm_define.clockwise)
chassis_ctrl.move_with_speed(0.5,0.5,30)
chassis_ctrl.stop()
gimbal_ctrl.enable_stick_overlay()
gimbal_ctrl.set_follow_chassis_offset(0)
gimbal_ctrl.set_rotate_speed(30)
gimbal_ctrl.recenter()
gimbal_ctrl.rotate(rm_define.gimbal_up)
gimbal_ctrl.rotate_with_degree(rm_define.gimbal_up,0)
gimbal_ctrl.yaw_ctrl(0)
gimbal_ctrl.angle_ctrl(0, 0)
gimbal_ctrl.rotate_with_speed(30,30)
gun_ctrl.set_fire_count(1)
gun_ctrl.fire_once()
gun_ctrl.fire_continuous()
gun_ctrl.stop()
ir_blaster_ctrl.set_fire_count(1)
ir_blaster_ctrl.fire_once()
ir_blaster_ctrl.fire_continuous()
ir_blaster_ctrl.stop()
vision_ctrl.enable_detection(rm_define.vision_detection_marker)
vision_ctrl.enable_detection(rm_define.vision_detection_line)
media_ctrl.enable_sound_recognition(rm_define.sound_detection_applause)
vision_ctrl.set_marker_detection_distance(1)
vision_ctrl.marker_detection_color_set(rm_define.marker_detection_color_red)
vision_ctrl.line_follow_color_set(rm_define.line_follow_color_blue)
media_ctrl.exposure_value_update(rm_define.exposure_value_large)
vision_ctrl.detect_marker_and_aim(rm_define.marker_trans_red_heart)
armor_ctrl.set_hit_sensitivity(5)
armor_ctrl.cond_wait(rm_define.cond_ir_hit_detection)
media_ctrl.play_sound(rm_define.media_sound_attacked)
media_ctrl.play_sound(rm_define.media_sound_attacked,wait_for_complete_flag=True)
media_ctrl.play_sound(rm_define.media_custom_audio_undefined)
media_ctrl.capture()
media_ctrl.record(1) |
|