Various KISS-C++ questions

30 replies [Last post]
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 in previous years, KIPR's policy was that teams were welcome to use C++, but that KIPR couldn't guarantee technical support for C++-specific issues. This also applied to Java, and unofficial languages like Lua and Create scripts. As long as teams were okay with the lack of guaranteed tech support, KIPR had no issue with those languages being used. I'm not sure if this is still true for the 2013 season. Braden, can you or someone else at KIPR clarify whether this is still the policy? I can't imagine KIPR discouraging C++ for reasons other than tech support, seeing as Botball has always been very hacker-friendly.

-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

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

This is correct. KIPR will not be able to answer tech support questions about languages other than C in the majority of cases. If you post on the homebase I'll get around to answering it eventually, but it might take a while. You are allowed to use any language or software you want on your robot, so long as it doesn't violate the game rules (e.g. communicating with your robot over wifi)

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

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

I'm still having trouble with compiling for the simulator in C++. Is that a simulator limitation or is it a bad install?

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

I'll look into it before pushing out the next release tonight (KISS Platform 4.0.5) Windows, right?

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

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

For now, yes I am using windows. Unless you have a sabayon/gentoo build of it. Thank you for helping.

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

Just fixed the issue. KISS IDE can be built from source under Linux with relative ease. There are some instructions for Ubuntu in the forum somewhere. If you're using Gentoo, you shouldn't have any issue building stuff from source ;) Will be releasing KISS IDE 4.0.5 within the next few hours.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

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

I'm fine with building from source, but I don't really want to if I don't need to.
I actually run Sabayon which is a gentoo offshoot with binary packages.

Does the create have a tophat like sensor? If so how can I access it in C++? I need it for line following.

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.

The Create's analog cliff sensors can be used for line-following.

-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.

What range are the values they return and is high-white and low-black?
Where are they located on the robot?
Thanks for helping.

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.

The values are 12-bit analog, but they don't use the full 12-bit range. I don't recall what the range they use is, but you can just use a printf loop to find out. The cliff sensors can be seen if you look on the bottom of the Create; they are 4 black rectangles about 3cm by 0.5cm, along the bumper.

-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