|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Line tracking
Can anyone direct me to some sample line tracking VI's for Labview? My team is trying it out this year and we don't know where to start.
|
|
#2
|
|||
|
|||
|
Re: Line tracking
The Getting Started window for LabVIEW lets you choose the robot project that has game code. The game code is the autonomous code that includes line following code.
Greg McKaskle |
|
#3
|
||||
|
||||
|
Re: Line tracking
I know its not quite what your looking for but from a concept perspective try and find a local FLL team. They do line tracking all the time and from working with them and seeing many teams they are always so excited to share and talk about what they did and everything. Also I this is where the GDC was trying to get FLL involved with the game. I know I've seen so many people mention about working with and FTC team but don't forget about the FLL teams as well and their knowledge.
|
|
#4
|
||||
|
||||
|
Re: Line tracking
The Inital autonomousVI with the Team code has line tracking code included. just need to make sure the drive motors and DIO for the sensors are referenced and hooked up properly.
|
|
#5
|
|||
|
|||
|
Re: Line tracking
I found this but we are having trouble setting it up can we just deploy this VI to the bot.
|
|
#6
|
||||
|
||||
|
Re: Line tracking
If you create a "default FRC project with game code" in Labview it has line tracking already included.
However, there is a bug in the program. You will need to edit the Begin vi and add the open functions and name the device reference IR1, IR2, and IR3. And there is information here: http://decibel.ni.com/content/docs/DOC-14730 |
|
#7
|
||||
|
||||
|
Re: Line tracking
How are the sensors wired to the CRIO?
|
|
#8
|
||||
|
||||
|
Re: Line tracking
Use the digital side car. Blue goes to ground, Brown is to power, and the other two can be switched whether you would like a normally high or a normally low return, for the signal.
|
|
#9
|
||||
|
||||
|
Re: Line tracking
Note that Blue and Brown need to be connected to the Power Distribution board. The line sensors take a minimum of 10.3 volts, and the Digital Side car only supplies 5.
|
|
#10
|
||||
|
||||
|
Re: Line tracking
Quote:
However, if you do that you have to run code to turn on all the solenoids, and that only works when the robot is enabled, so calibration is hard. |
|
#11
|
||||
|
||||
|
Re: Line tracking
OK, so the blue and black will go to the power board, and the others go to the sidecar. I can't find the actual instructions anywhere. So I am thinking then we will connect the other two leads to the sidecar on 3 of the digital i/o connectors. We use labview, so we will define 3 little green VI's to represent the connectors. Is there anything else we need to know?
|
|
#12
|
|||||
|
|||||
|
Re: Line tracking
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|