Skip to content

Instantly share code, notes, and snippets.

View SilasHelgesson's full-sized avatar
💭
LUFT UND RAUMFAHRT !!!

Silas Helgesson SilasHelgesson

💭
LUFT UND RAUMFAHRT !!!
  • Technische Universität Berlin
  • Berlin
  • 07:50 (UTC +02:00)
View GitHub Profile
from pymycobot import MyCobot280
from pymycobot import Angle
import time
mc = MyCobot280('/dev/ttyACM0')
mc.power_on()
mc.sync_send_coords([3.8, -94.3, 374.0, 10.93, 5.56, -24.74],50,0)
time.sleep(2.5)
mc.send_angle(Angle.J1.value, 90, 50)
import java.util.Arrays;
public class Main {
/*
* Runtime is N²
* */
public static boolean sum_in_array(int[] input_array,int input_K){
for(int i=0;i < input_array.length;i++){
for(int j = i + 1;j<input_array.length;j++){
if(input_array[i] + input_array[j] == input_K) {