Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   no suitable constructor found error? (http://www.chiefdelphi.com/forums/showthread.php?t=102078)

Bennett 06-02-2012 08:33

no suitable constructor found error?
 
Ok so i'm coding the Accelerometer, and in my commandbase i have
Code:

public static Accelerometer Accelerometer = new Accelerometer();
and no matter what we try we always get the error: no suitable constructor found for Accelerometer()
any help would be appreciated, thanks.

notmattlythgoe 06-02-2012 08:34

Re: no suitable constructor found error?
 
It needs a channel number, wherever it is plugged in.
public static Accelerometer Accelerometer = new Accelerometer(1);

Here is a link to the Javadoc for it.
http://www.wbrobotics.com/javadoc/ed...lerometer.html

Bennett 06-02-2012 09:30

Re: no suitable constructor found error?
 
ok that worked, thanks!


All times are GMT -5. The time now is 10:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi