We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Tim needs help
Page Index Toggle Pages: 1
Tim needs help (Read 870 times)
Tim needs help
May 7th, 2010, 3:59pm
 
programing a helicoptor with a camra got this far. wont work!

import processing.serial.*;

import processing.video.*;

import cc.arduino.*;

Arduino helicoptor;
Serial control;
Capture bottom;
Capture front;

setup()
{
 size(640, 480);
 front = new Capture(this, 320, 240, "frontname");
 bottom = new Capture(this, 320, 240, "frontname");
 helicoptor = new Arduino(this, "name", 57600);
 control = new Serial(this, "name", 9600);
}

println("Cameras");
println(Capture.list());
println("helicoptors");
println(Arduino.list());
println("controlers and GPS's");
println(Serial.list());
Re: Tim needs help
Reply #1 - May 8th, 2010, 12:13am
 
Note: try and find more expressive subject lines, as most messages here ask for help, if they all look alike, it will be hard to find a given topic... Smiley

Your println() cannot work as they are not inside setup() or another function.

Perhaps you should master simple sketches (like controlling a rectangle with keyboard) before trying harder stuff.
Page Index Toggle Pages: 1