NXTCam & Line Following with NXC - HELP!

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
sparramc
Posts: 83
Joined: 29 Sep 2010, 08:44
Location: Launceston, Tasmania, Australia
Contact:

NXTCam & Line Following with NXC - HELP!

Post by sparramc »

Hi everyone,

I've got myself a NXTCam, and have been trying to get a NXC based NXTCam Line Following program to work.

I can follow coloured balls etc. around the room, but follow a black line; I'm stumped! I've been Googling for hours/days with no luck!

I put the NXTCam into Line mode, but I can't get a black line followed. I've tried using the camtest_v3.nxc program with black blob loaded, yet nothing happens in either Line or Blob Modes.

Can some one please post a working NXC example for me to get me started?

Can I have the NXTCam in line follow mode and still access coloured blobs to cause the Line Follower to start a new action?

The documentation for using NXC with the NXTCam is very thin on the ground, I've discovered. Especially for a beginner / intermediate programmer. RobotC is fractionally better, accept the RobotC Forum example codes are as old as me, and like me won't run without a great deal of effort. When I get the NXTCam nutted-out, I will attempt to put a couple of NXC tutorials together to help others in my situation.
regards

Ray McNamara

www.rjmcnamara.com

'The Universe Consists of 1% Hydrogen, & the Rest is Ignorance!'
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: NXTCam & Line Following with NXC - HELP!

Post by dudmaster »

I'm not completely possable with the default thresholds of the sensor, but I don't have one.
2Labz.com, My Website
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXTCam & Line Following with NXC - HELP!

Post by h-g-t »

There is are notes here on how cameras were used to guide a line-follower - might give you some ideas. Sorry I can't come up with a program.

http://blog.electricbricks.com/en/2010/ ... -follower/

http://web.abo.fi/fak/tkf/rt/robot/print.php

http://dasl.mem.drexel.edu/~seanMason/?page_id=289

http://www.youtube.com/watch?v=o6U7Xtvk ... r_embedded (link to program dead)
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
sparramc
Posts: 83
Joined: 29 Sep 2010, 08:44
Location: Launceston, Tasmania, Australia
Contact:

Re: NXTCam & Line Following with NXC - HELP!

Post by sparramc »

h-g-t wrote:There is are notes here on how cameras were used to guide a line-follower - might give you some ideas. Sorry I can't come up with a program.

http://blog.electricbricks.com/en/2010/ ... -follower/

http://web.abo.fi/fak/tkf/rt/robot/print.php

http://dasl.mem.drexel.edu/~seanMason/?page_id=289

http://www.youtube.com/watch?v=o6U7Xtvk ... r_embedded (link to program dead)
Thanks for trying.
regards

Ray McNamara

www.rjmcnamara.com

'The Universe Consists of 1% Hydrogen, & the Rest is Ignorance!'
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests