Direct Programming to the Create

19 replies [Last post]
amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 5 years 32 weeks ago.

Hi, I was wondering if anyone has a good reference on how to program the Create (without the CBC). Is there a separate manual, because I didn't see it in the normal target manual. Thanks-

-amehta (Andrew Mehta)

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

http://community.botball.org/forum/technical/programming/gcer-papers-cre...

It's a bit outdated (uses XBC instead of CBC), but mostly applies the same way.

I do plan on publishing another Create paper at GCER 2012 if all goes according to plan.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

ruler501
ruler501's picture
Title: NooBot
Joined: 01/29/2012
Posts:
BotPoints: 367
User offline. Last seen 7 years 20 weeks ago.

There are some prewritten scripts here if you want some help/examples
https://github.com/kipr/kiss-targets/blob/master/libraries/create/kiss-c...

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

@ruler501, the libcbc examples were obsolete in 2008 when I published my first Create paper, and were made further obsolete in 2009. Almost every feature listed in my 2 papers is not doable using the libcbc examples; I would not recommend using the libcbc script code.

@Andrew, if you run into any problems with the stuff in my papers, I'm happy to help. Just post the problem on the forum and I'll look at it.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

JMonsorno
JMonsorno's picture
Title: NooBot
Joined: 11/28/2010
Posts:
BotPoints: 37
User offline. Last seen 5 years 28 weeks ago.
ruler501
ruler501's picture
Title: NooBot
Joined: 01/29/2012
Posts:
BotPoints: 367
User offline. Last seen 7 years 20 weeks ago.

@Jeremy Rand Even the ones in kiss-create-2011.h? I assumed since it was labeled 2011 it would be reasonably up to date. Sorry if I was wrong

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

I'm pretty sure that the script functionality in KIPR's current libs was copied almost verbatim from David Miller's Create lib from 2007. It looks to me like David was trying to use it for more accurate dead-reckoning (not autonomous operation), but it really isn't particularly suitable even for that. KIPR has never officially supported scripting, so they have no reason to update the lib; my guess is they just don't see a point to removing the code that's already in the lib, despite its obsolescence.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 5 years 32 weeks ago.

Thanks everybody for your help!

-amehta (Andrew Mehta)

amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 5 years 32 weeks ago.

So do I use something other than KISS IDE?

-amehta (Andrew Mehta)

ruler501
ruler501's picture
Title: NooBot
Joined: 01/29/2012
Posts:
BotPoints: 367
User offline. Last seen 7 years 20 weeks ago.

You can use anything for programming just for compiling you should probably use KISS IDE and KISS IDE also allows easier transfers to the robot(unless you set up wifi)
My team this year used a program called notepad++ and put it onto the cbc through a flash drive

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

KISS-IDE should be fine. Flash drive and wifi should work too, but flash drive makes error checking a pain, and wifi requires some haxx (not that this is a bad thing; I use wifi fairly often). The only issue with KISS-IDE is that I suspect you'll need to do some #ifdef __arm__ magic, due to the simulator libs not treating scripting commands the same as libcbc treats them. Wifi won't have this issue (unless you compile for the simulator target), and a flash drive won't have this issue either.

I plan to release a new Create script library at GCER this year, which should make it quite a bit easier to use scripts in KISS-IDE.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS