git clone https://github.com/mavlink/mavlink.git
Create a file named custom.xml
with these contents:
// StopWatch | |
// Simple multiple-stopwatch application | |
// Author: Christopher Vo (cvo1@cs.gmu.edu) | |
public class StopWatch extends javax.swing.JFrame { | |
private static final long serialVersionUID = -7040646868513878300L; | |
private static int numTimers = 5; | |
public StopWatch() { | |
// make main window |
NVCC = /usr/local/cuda/bin/nvcc | |
all: vecadd | |
%.o : %.cu | |
$(NVCC) -c $< -o $@ | |
vecadd : vecadd.o | |
$(NVCC) $^ -o $@ |
#!/usr/bin/env python | |
import sys, os | |
from optparse import OptionParser | |
# tell python where to find mavlink so we can import it | |
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../mavlink')) | |
from pymavlink import mavutil | |
def handle_heartbeat(msg): |
#!/usr/bin/env python | |
#### | |
# | |
# Usage: | |
# ./add_var.py [key] [value] | |
# | |
#### | |
import re |
public class SimpleSolver { | |
static int eval(String q) { | |
int val = 0; | |
java.util.StringTokenizer st = new java.util.StringTokenizer(q, "*/+-", true); | |
while (st.hasMoreTokens()) { | |
String next = st.nextToken().trim(); | |
if (next.equals("+")) { | |
val += Integer.parseInt(st.nextToken().trim()); | |
} else if (next.equals("-")) { | |
val -= Integer.parseInt(st.nextToken().trim()); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>gstreamer video example</title> | |
</head> | |
<body> | |
<video width=640 height=480 autoplay> | |
<source src="http://localhost:8080"> | |
</video> |
#!/usr/bin/env python | |
import sys, os, socket, pickle | |
from time import time | |
from optparse import OptionParser | |
UDP_IP = "127.0.0.1" | |
UDP_PORT = 31200 | |
# tell python where to find mavlink so we can import it |
#!/usr/bin/env python | |
import sys, os | |
from optparse import OptionParser | |
import Tkinter as tk | |
# tell python where to find mavlink so we can import it | |
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../mavlink')) | |
from pymavlink import mavutil |
public class Link { | |
int value; | |
Link next; | |
public Link(int value) { | |
this.value = value; | |
this.next = null; | |
} | |