New camera command?

3 replies [Last post]
Tyler
Title: NooBot
Joined: 02/19/2013
Posts:
BotPoints: 5
User offline. Last seen 9 years 31 weeks ago.

I am currently trying to code for the new cameras we received this year. However, the KISS 4.0.5 doesn't seem to identify the track_x command. Is there a new line of code that replaced/does the same thing as track_x?

Grant Simpson
Title: YAC Person
Joined: 01/14/2013
Posts:
BotPoints: 2
User offline. Last seen 9 years 12 weeks ago.

Yes...according to the new code for the camera demonstrated at the workshop I am pretty sure that track_x has been replaced with get_object_center(channel, blob).x , which will return the x coordinate of the center of that object. (this is of course assuming that you are looking for the center of an object)

Tyler
Title: NooBot
Joined: 02/19/2013
Posts:
BotPoints: 5
User offline. Last seen 9 years 31 weeks ago.

Thank you very much. Due to other commitments, my group wasn't available for the second day of the workshop. This will definitely assist with programming the robots. Again, thank you.

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 think all the workshop slides are on the Home Base. They're an excellent resource for the new Link-specific stuff which hasn't yet made it into the KISS-IDE documentation.

-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