initial commit

This commit is contained in:
2015-05-18 14:38:20 -06:00
commit 6b275e81a1
21 changed files with 297 additions and 0 deletions

7
GroundStation/Copter.pde Normal file
View File

@@ -0,0 +1,7 @@
public abstract class Copter {
public int[] channels;
public int[] motors;
public Copter(){}
public void draw3d(){}
}

View File

@@ -0,0 +1,24 @@
import javax.swing.*;
final int backgroundColor = 51;
Copter copter = new Quad();
JFrame frame = new JFrame( "blah" );
frame.setResizable( true );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
JButton button = new JButton( "blah" );
frame.add( button );
frame.pack();
frame.setVisible( true );
void setup(){
size( 640, 360, P3D );
background( backgroundColor );
}
void draw(){
// Begin to draw new image
background( backgroundColor );
copter.draw3d();
}

8
GroundStation/Quad.pde Normal file
View File

@@ -0,0 +1,8 @@
public class Quad extends Copter {
public Quad(){
this.motors = new int[4];
}
public void draw3d(){
}
}

View File

@@ -0,0 +1,2 @@
mode.id=processing.mode.java.JavaMode
mode=Java