Is there a program on processing out there to create a 3D figure of an aircraft? My current code works with a cube but i wish it to be a plane instead. Any idea how to do this please?
Is there a program on processing out there to create a 3D figure of an aircraft? Im currently working with a cube but i wish it to be a plane instead. Any idea how to do this please?
Im working with an arduino 1280 which is connected serially via USB to 6 sensors (3 accelerometers and 3 gyros) and i wish to display their data on a real-time graph on processing.
How can i do this please as ive never done it before?
For some reason i cant reply or comment to my own question, anyway, yes, everything is sent serially via USB.
This is my processing code, if you need my arduino code i'd be happy to provide it too. Thanks in advance :)
import processing.serial.*;
Serial myPort; // Create object from Serial class
boolean firstSample = true;
float [] RwAcc = new float[3]; //projection of normalized gravitation force vector on x/y/z axis, as measured by accelerometer
float [] Gyro = new float[3]; //Gyro readings
float [] RwGyro = new float[3]; //Rw obtained from last estimated value and gyro movement
float [] Awz = new float[3]; //angles between projection of R on XZ/YZ plane and Z axis (deg)
float [] RwEst = new float[3]; //corrected output values from gyro data and previous estimates
int lastTime = 0;
int interval = 0;
float wGyro = 10.0;
int lf = 10; // 10 is '\n' in ASCII
byte[] inBuffer = new byte[22]; // this is the number of chars on each line from the Arduino (including /r/n)
PFont font;
final int VIEW_SIZE_X = 600, VIEW_SIZE_Y = 600; //size for box
void setup()
{
size(VIEW_SIZE_X, VIEW_SIZE_Y, P3D); //P3D - Third parameter
myPort = new Serial(this, "COM9", 9600);
font = loadFont("CourierNew36.vlw");
im having problems finishing off my project and i could really do with some help.
I have created a 3D box to represent my physical hardware. I have a 6DOF connected to an arduino. This 6DOF contains 3 accelerometers and 3 gyros. My problem is that my z axis just doesnt want to work well, that is, when i move my 6DOF left and right, nothing happens, whilst my pitch and roll (x and y axis) works fine. I think the problem's coming from my processing code not my arduino code, but im not sure.
Can anybody help me out please as i cant seem to find the problem?