-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MuviumLerosSDK fails to build more complex Blink.java #3
Comments
Hi, MuviumLeros in its current form is lets just limited with a capital L So while the plan is to pull across more of the full features like classes, Below I have modified your code to at least build - no idea if it works Limitations/Mods
Cheers, import com.muvium.leros.Native; public class BlinkRF extends MuviumRunnable { //////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
}; // class ImageBuffers //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// // Input addresses // Output addresses // input status bits //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //ImageBuffers imageBuffersA; static int imageBuffersA ; //<<<<<<< Removed Object reference //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// private static void testInputImage( //<<<<<<< Made a static method
image.
image.
} // testInputImage() //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// public void run() {
initialised
lull.
} // run() } |
Thank you James, I'd been hoping to use the core for another project and was concerned I'll let you know what happens. Rodney On 02/26/2012 03:39 AM, JamesCaska wrote:
|
Hi, I got master head revision fresh install. |
The enclosed replacement for java/target/src/Blink.java produces the following error message during the fourth operation in "make java_app".
PreCondition Failed : Method Bytecodes error : java.lang.ArrayIndexOutOfBoundsException: 30 - Blink:run
Exception in thread "main" java.lang.RuntimeException: PreCondition Failed : Method Bytecodes error : java.lang.ArrayIndexOutOfBoundsException: 30 - Blink:run
at aj.a(Unknown Source)
at X.a(Unknown Source)
at cP.a(Unknown Source)
at MuviumMetal.main(Unknown Source)
make: *** [java_app] Error 1
Steps to reproduce the error
The rest of this is the replacement for Blink.java:
/* Copyright 2012, Sinclair R.F., Inc. */
import com.muvium.leros.Native;
import com.muvium.MuviumRunnable;
public class Blink extends MuviumRunnable {
//////////////////////////////////////////////////////////////////////////////
//
// Image pointer class
//
//////////////////////////////////////////////////////////////////////////////
public class ImageBuffers {
}; // class ImageBuffers
//////////////////////////////////////////////////////////////////////////////
//
// Constants
//
//////////////////////////////////////////////////////////////////////////////
// Input addresses
final static short ADDR_STATUS = 0;
final static short ADDR_SIZE_IMAGE_1 = 1;
final static short ADDR_SIZE_IMAGE_2 = 2;
// Output addresses
final static short ADDR_INPUT_BUFFER_0 = 0;
final static short ADDR_INPUT_BUFFER_1 = 1;
// input status bits
final public static int STATUS_IX_IMAGE_1 = 1;
final public static int STATUS_IX_IMAGE_2 = 2;
final public static int STATUS_IX_IMAGE_OUT = 4;
//////////////////////////////////////////////////////////////////////////////
//
// objects
//
//////////////////////////////////////////////////////////////////////////////
ImageBuffers imageBuffersA;
ImageBuffers imageBuffersB;
//////////////////////////////////////////////////////////////////////////////
//
// Process the specified input image channel.
//
//////////////////////////////////////////////////////////////////////////////
private void testInputImage(
int status_new,
int changed,
int mask,
short addr_size,
ImageBuffers buffers,
short addr_input_buffer
) {
} // testInputImage()
//////////////////////////////////////////////////////////////////////////////
//
// main program
//
//////////////////////////////////////////////////////////////////////////////
public void run() {
} // run()
}
The text was updated successfully, but these errors were encountered: