This is feeling like a “Wizard of Oz” moment when the screen turns to color… twospoons, you’re not in Kansas anymore
It didn’t occur to me earlier today when I volunteered to test this on Cerberus that I was also going to have to convert it to RLP Lite… I’ve yet to successfully do much with RLPLite but I’m up to the challenge. Can someone give a little help…
First, from the RLP Lite wiki page there are a couple things that are a little confusing in the example.
First…
//////////////////////////////////////
// Important note: Global variables are not initialized
// For example, this variable below does not have 123 in it. It contains a random number.
int notinit = 123;
/////////////////////////////////////
There’s no guidance here on how to properly initialize globals. Can this be done in main() or should these be passed into a function? Or should globals not be used at all?
#define DATA_SIZE 50
int main()
{
int i;
unsigned char data[DATA_SIZE];
int value[1]={0x55};
unsigned char length[1]= {DATA_SIZE};
i = RLP_MemSet(data, value, length);
i = RLP_MemSetStdLib(data, value, length);
while(1);
}
Is a main() loop required? Does this run all the time or at all after loaded into managed code? Is this only executed if you run it in Keil?
Also, I think this example only works with the Hydra. Is there any guidance for compiling RLP for Cerberus?
twospoons’ function has a parameter list like this…
int ProcessImage(unsigned char *generalArray, void **args, unsigned int argsCount, unsigned int *argSize)
How would I convert that to RLPLite since it only allows void, int, & unsigned char params? Does this mean I can’t have unsigned int or is there another way?
Thanks!
I’m going to pick up one of those boards also; it might take me a few days before I can get going on it. The cortex m cpu is interesting.
And I think I know you ianlee; scorecard?
If you’re working on quadcopters for some of this we need to get together and share some thoughts.
[quote=“twospoons”]And I think I know you ianlee; scorecard?
If you’re working on quadcopters for some of this we need to get together and share some thoughts.
[/quote]
YES! Shoot me an email to ian [at] houseoflees dot net. It’s great to have another local here.
I’ve got an extra Cerberus. If you want one before the weekend, let me know and we can meet up tomorrow for lunch.
@ twospoons:
did you see our proposal about implementing hough line transformation too?
What do you think about?