I finally got the boot-loader for Robot C onto my Arduino Mega, and this looks really cool. But I still struggle with cross platform comparability between the Cortex and the Mega, specifically the command abort time slice vs end time slice. They appear to have the same functionality, but end time slice is not supported under the Arduino platform. is end time slice going to be deprecated from the Cortex support?

Cheers Kb

Fri Dec 07, 2012 9:57 am

JohnWatson

Site Admin

Joined: Thu May 24, 2012 12:15 pmPosts: 722

Re: cross platform compatability

You are absolutely correct, the abortTimeSlice() and endTimeSlice() commands work exactly the same:

We are looking to deprecate (but not remove) one or the other from ROBOTC moving forward, but are not sure which one will remain active. In the meantime, you can do a simple find and replace in any code that has the EndTimeSlice(); command and replace it with abortTimeSlice();

Thanks for the quick reply, now I have another issue. I trying to get my multi robot code to work I found code I wrote for the Cortex Seems to run fun, when I ported it to the Arduino I am not getting the same result at all. I have a main piece of code here:

When I run this code one the cortex (the only difference is the first pragma line) and examine the Debug Stream I can see the data which is to be sent to the serial port and it updates as I would expect, but when I use the same code on the Arduino I don't get the same effect. I get data that doesn't change including the time tag. Here's the output of the Cortex Run.

Any Ideas on how to port this type of code successfully? I am thinking at this point it has something to do with the data structure in use.

Cheers Kb

Sat Dec 08, 2012 9:57 pm

fretless_kb

Rookie

Joined: Wed Feb 09, 2011 1:08 amPosts: 27

Re: cross platform compatability

Well coding for just a buffer vs a union had no effect, the code in either case works with the Cortex platform but not the arduino, so something else is going on. Any help would be appreciated. Thanks - Kb

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum