SlideShare une entreprise Scribd logo
1  sur  12
Advanced LabVIEW Topics

        Jim Chastain
    jimc2550@gmail.com
Agenda
•   Use Robot Global Data as debug tool
•   Minimize watchdog timer errors
•   D/S message to track prog version
•   Scan all sensors in Periodic Tasks
•   Reusable templates ‘debugged ‘
•   State machines - build two



                     jimc2550@gmail.com
CONCEPT BUNNYBOT




     jimc2550@gmail.com
We want our bunny bot design to
            have..
– Arcade control during teleop
– Tank drive for Autonomous
– Grip/Release solenoid control in teleop & auto
  using a state machine
– Robot Global Data optimized for debug
– Use a template for reuse with common functions
– All sensors and controls driven through Periodic
  Tasks.vi, minimize watchdog timer problems
– Use D/S message block for program version
  notation
                   jimc2550@gmail.com
Basic Template to start
• Rather than have to start with a fresh 2012 FRC
  Robot Project every time…. Build a re-usable
  template with the basic sensors we know for
  sure….
• joysticks read into Robot Global Data
• Two Drive motors, one solenoid, compressor,
  encoder
• In Teleop, put name is d/s message block
• BUNNYBOT 2012 template
• Then SAVE AS special name for program

                     jimc2550@gmail.com
Advanced Program Design Topics
• State Machines
    – Often used in control programs to improve stability… ie limit weird
      unexpected outputs
• Robot Global Variable
    – Useful temp storage for LabVIEW program variable data which is accessible by
      all project Vis
• Watchdog timer
    – Used to detect if program has gotten lost!
    – Timer must be “updated” at a specific frequency so that HOST OS knows the
      margin of safety is ok
    – Used in Robot Project Drive Motors to ensure robot motion is always under
      positive control must refresh every 100 ms
• USER Message to ID program in cRIO
• Video image processing use global data to debug
• Autonomous system controls . . Use periodic tasks to combine controls
  into global data

                                  jimc2550@gmail.com
FRC 2012 Robot Project
• Start by looking at Robot Main. Vi in our
  template
• Then put joystick scan and solenoid state
  machine in template
     ENUM      GRIP SOLENOID STATE CHART
     STATE      OUTPUT            TRIG to CASE   NEXT STATE
     START      SOL = REV         NONE           REVERSE
     REVERSE    SOL= REV          GRIP           GRIP
     GRIP       SOL = FORW        REL            REVERSE


                         jimc2550@gmail.com
In autonomous we want to…
•   Reset ENCODER, RELEASE GRIP
•   Drive forward 10 feet
•    Reset encoder
•   Close gripper
•   Back 5 feet
•   Reset encoder
•   Turn left 90 degrees
•   Reset encoder
•   Go forward 5 feet
•   Stop and open gripper
•   (note, we need a 5 sec delay to build pressure?)

                           jimc2550@gmail.com
State Machine chart for Autonomous
      STATE      OUTPUTS                   TRIGGER     NEXT STATE   NOTES
1     START      R=L=0, G=F,               NONE        FORW10
                 ENCRS=REL=T
2     FORW10     R=L=-.4                   ENC=10      RSENC1
                 ENCRS=REL=F
3     RSENC1     R=L=0; ENCRS=T            1025 MS     CLOSEGRP
4     CLOSEGRP   R=L=0; ENCRS=F;           1025 MS     BACK5
                 GRP=T
5     BACK5      R=L=.34; GRP = F          ENC = 5     RSENC2
6     RSENC2     R=L=0;ENCRS=T             1025 MS     TURN LEFT
7     TURN LEFT ENCRS=F; R=-.34            ENC = .03   RSENC3
8     RSENC3     R=L=0; ENCRS=T;           1025 MS     FORW5
9     FORW5      R=L=-.35;ENCRS=F          ENC = 5     STP&REL
10    STP&REL    R=L=0; REL=T              1025 MS     END
11    END        R=L=0, REL=GRP=F          NONE        END
                                jimc2550@gmail.com
Create and debug
• Build state machine in autonomous

• Watch Robot Global Data during execution

• Use ‘highlight execution’ to debug
• WATCH DIAGNOSTIC WINDOW IN DS
  IMPROVEMENTS?

                  jimc2550@gmail.com
First fare notes
• First fare template.lvproj
    – Robot main.vi
        • Robot mode state machine
        • Global variables
        • Put AUTO ENABLE in Robot Global
    – Teleop.vi
        • Disable drive
        • Put messages into driver station
    – Periodic tasks.vi
        • Autoencoder reset                 create and put in global
        • Gripper state machine
             –   Output to solenoide
             –   Input from grip/release
             –   Enum
             –   Enum indicator put on robot global data
    – Run Template with driver station


                                        jimc2550@gmail.com
First fare notes 2
• First fare bunnybot
  – Teleop put in message
  – Autonomous
     • Put message in driver station
     • Show state machine chart
     • Go through each step in state machine
  – Finds errors
  – Run with driver station
  – Run in highlight execution mode
                        jimc2550@gmail.com

Contenu connexe

Tendances

Tendances (20)

8051 -4
8051 -48051 -4
8051 -4
 
Logic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic GatesLogic Design - Chapter 2: Logic Gates
Logic Design - Chapter 2: Logic Gates
 
Ring counter
Ring counterRing counter
Ring counter
 
Flipflop
FlipflopFlipflop
Flipflop
 
Scientific disaster
Scientific disasterScientific disaster
Scientific disaster
 
Trts d flip flop1
Trts d flip flop1Trts d flip flop1
Trts d flip flop1
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
 
G. ripple counter
G. ripple counterG. ripple counter
G. ripple counter
 
Microprocessor Laboratory 2: Logical instructions
Microprocessor Laboratory 2: Logical instructionsMicroprocessor Laboratory 2: Logical instructions
Microprocessor Laboratory 2: Logical instructions
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Digital logic circuit
Digital logic circuitDigital logic circuit
Digital logic circuit
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
flip flops
flip flops flip flops
flip flops
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
ProjectPresentationKTH
ProjectPresentationKTHProjectPresentationKTH
ProjectPresentationKTH
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Flip flop
Flip flopFlip flop
Flip flop
 

Similaire à FIRSTFare 2012 advanced lab view topics

Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and roboticsSiddhant Chopra
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)yogesh8418
 
Problem frames
Problem framesProblem frames
Problem framesJoseph Raj
 
Syllabus 5 month pclr
Syllabus 5 month pclrSyllabus 5 month pclr
Syllabus 5 month pclrchiptroniks
 
Laptop Repairing Course 5 Months Syllabus
Laptop Repairing Course 5 Months SyllabusLaptop Repairing Course 5 Months Syllabus
Laptop Repairing Course 5 Months SyllabusChiptroniks Inst
 
lec12-pipelining.ppt
lec12-pipelining.pptlec12-pipelining.ppt
lec12-pipelining.pptManimegalaM3
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMIBOSCH
 
Exploration and Coverage for Autonomous Vehicles
Exploration and Coverage for Autonomous Vehicles Exploration and Coverage for Autonomous Vehicles
Exploration and Coverage for Autonomous Vehicles Chouaieb NEMRI
 
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015Codemotion
 
Oral Report Rev2
Oral Report Rev2Oral Report Rev2
Oral Report Rev2guest845037
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step Ming-Hung Hseih
 
Software architecture of wheeled mobile robots
Software architecture of wheeled mobile robotsSoftware architecture of wheeled mobile robots
Software architecture of wheeled mobile robotsDmitry Suvorov
 
Gordon morrison temporalengineering-delphi-v3
Gordon morrison temporalengineering-delphi-v3Gordon morrison temporalengineering-delphi-v3
Gordon morrison temporalengineering-delphi-v3Gordon Morrison
 
plc_training_manual.pdf
plc_training_manual.pdfplc_training_manual.pdf
plc_training_manual.pdfMarioHaguila
 
07 seq logicii-ix2
07 seq logicii-ix207 seq logicii-ix2
07 seq logicii-ix2SHIVA PRASAD
 

Similaire à FIRSTFare 2012 advanced lab view topics (20)

chapter 4
chapter 4chapter 4
chapter 4
 
CNC(KAPIL)
CNC(KAPIL)CNC(KAPIL)
CNC(KAPIL)
 
Unit-III.pptx
Unit-III.pptxUnit-III.pptx
Unit-III.pptx
 
Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and robotics
 
What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)What Is a Programmable Logic Controller (PLC)
What Is a Programmable Logic Controller (PLC)
 
Himanth_Resume
Himanth_ResumeHimanth_Resume
Himanth_Resume
 
Problem frames
Problem framesProblem frames
Problem frames
 
Syllabus 5 month pclr
Syllabus 5 month pclrSyllabus 5 month pclr
Syllabus 5 month pclr
 
Laptop Repairing Course 5 Months Syllabus
Laptop Repairing Course 5 Months SyllabusLaptop Repairing Course 5 Months Syllabus
Laptop Repairing Course 5 Months Syllabus
 
A TRAFFIC LIGHT CONTROL SYSTEM USING PROGRAMMABLE LOGIC CONTROLLER
A TRAFFIC LIGHT CONTROL SYSTEM USING PROGRAMMABLE LOGIC CONTROLLERA TRAFFIC LIGHT CONTROL SYSTEM USING PROGRAMMABLE LOGIC CONTROLLER
A TRAFFIC LIGHT CONTROL SYSTEM USING PROGRAMMABLE LOGIC CONTROLLER
 
lec12-pipelining.ppt
lec12-pipelining.pptlec12-pipelining.ppt
lec12-pipelining.ppt
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMI
 
Exploration and Coverage for Autonomous Vehicles
Exploration and Coverage for Autonomous Vehicles Exploration and Coverage for Autonomous Vehicles
Exploration and Coverage for Autonomous Vehicles
 
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015
Trash Robotic Router Platform - David Melendez - Codemotion Rome 2015
 
Oral Report Rev2
Oral Report Rev2Oral Report Rev2
Oral Report Rev2
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
Software architecture of wheeled mobile robots
Software architecture of wheeled mobile robotsSoftware architecture of wheeled mobile robots
Software architecture of wheeled mobile robots
 
Gordon morrison temporalengineering-delphi-v3
Gordon morrison temporalengineering-delphi-v3Gordon morrison temporalengineering-delphi-v3
Gordon morrison temporalengineering-delphi-v3
 
plc_training_manual.pdf
plc_training_manual.pdfplc_training_manual.pdf
plc_training_manual.pdf
 
07 seq logicii-ix2
07 seq logicii-ix207 seq logicii-ix2
07 seq logicii-ix2
 

Plus de Oregon FIRST Robotics

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST Robotics
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentationOregon FIRST Robotics
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentationOregon FIRST Robotics
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teamsOregon FIRST Robotics
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014Oregon FIRST Robotics
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013Oregon FIRST Robotics
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014Oregon FIRST Robotics
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notesOregon FIRST Robotics
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST TeamsOregon FIRST Robotics
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview Oregon FIRST Robotics
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013Oregon FIRST Robotics
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinarOregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3Oregon FIRST Robotics
 

Plus de Oregon FIRST Robotics (20)

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentation
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentation
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teams
 
First fare 2013 pneumatics 2013
First fare 2013   pneumatics 2013First fare 2013   pneumatics 2013
First fare 2013 pneumatics 2013
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notes
 
First fare 2013 basic-labview
First fare 2013   basic-labviewFirst fare 2013   basic-labview
First fare 2013 basic-labview
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3
 

FIRSTFare 2012 advanced lab view topics

  • 1. Advanced LabVIEW Topics Jim Chastain jimc2550@gmail.com
  • 2. Agenda • Use Robot Global Data as debug tool • Minimize watchdog timer errors • D/S message to track prog version • Scan all sensors in Periodic Tasks • Reusable templates ‘debugged ‘ • State machines - build two jimc2550@gmail.com
  • 3. CONCEPT BUNNYBOT jimc2550@gmail.com
  • 4. We want our bunny bot design to have.. – Arcade control during teleop – Tank drive for Autonomous – Grip/Release solenoid control in teleop & auto using a state machine – Robot Global Data optimized for debug – Use a template for reuse with common functions – All sensors and controls driven through Periodic Tasks.vi, minimize watchdog timer problems – Use D/S message block for program version notation jimc2550@gmail.com
  • 5. Basic Template to start • Rather than have to start with a fresh 2012 FRC Robot Project every time…. Build a re-usable template with the basic sensors we know for sure…. • joysticks read into Robot Global Data • Two Drive motors, one solenoid, compressor, encoder • In Teleop, put name is d/s message block • BUNNYBOT 2012 template • Then SAVE AS special name for program jimc2550@gmail.com
  • 6. Advanced Program Design Topics • State Machines – Often used in control programs to improve stability… ie limit weird unexpected outputs • Robot Global Variable – Useful temp storage for LabVIEW program variable data which is accessible by all project Vis • Watchdog timer – Used to detect if program has gotten lost! – Timer must be “updated” at a specific frequency so that HOST OS knows the margin of safety is ok – Used in Robot Project Drive Motors to ensure robot motion is always under positive control must refresh every 100 ms • USER Message to ID program in cRIO • Video image processing use global data to debug • Autonomous system controls . . Use periodic tasks to combine controls into global data jimc2550@gmail.com
  • 7. FRC 2012 Robot Project • Start by looking at Robot Main. Vi in our template • Then put joystick scan and solenoid state machine in template ENUM GRIP SOLENOID STATE CHART STATE OUTPUT TRIG to CASE NEXT STATE START SOL = REV NONE REVERSE REVERSE SOL= REV GRIP GRIP GRIP SOL = FORW REL REVERSE jimc2550@gmail.com
  • 8. In autonomous we want to… • Reset ENCODER, RELEASE GRIP • Drive forward 10 feet • Reset encoder • Close gripper • Back 5 feet • Reset encoder • Turn left 90 degrees • Reset encoder • Go forward 5 feet • Stop and open gripper • (note, we need a 5 sec delay to build pressure?) jimc2550@gmail.com
  • 9. State Machine chart for Autonomous STATE OUTPUTS TRIGGER NEXT STATE NOTES 1 START R=L=0, G=F, NONE FORW10 ENCRS=REL=T 2 FORW10 R=L=-.4 ENC=10 RSENC1 ENCRS=REL=F 3 RSENC1 R=L=0; ENCRS=T 1025 MS CLOSEGRP 4 CLOSEGRP R=L=0; ENCRS=F; 1025 MS BACK5 GRP=T 5 BACK5 R=L=.34; GRP = F ENC = 5 RSENC2 6 RSENC2 R=L=0;ENCRS=T 1025 MS TURN LEFT 7 TURN LEFT ENCRS=F; R=-.34 ENC = .03 RSENC3 8 RSENC3 R=L=0; ENCRS=T; 1025 MS FORW5 9 FORW5 R=L=-.35;ENCRS=F ENC = 5 STP&REL 10 STP&REL R=L=0; REL=T 1025 MS END 11 END R=L=0, REL=GRP=F NONE END jimc2550@gmail.com
  • 10. Create and debug • Build state machine in autonomous • Watch Robot Global Data during execution • Use ‘highlight execution’ to debug • WATCH DIAGNOSTIC WINDOW IN DS IMPROVEMENTS? jimc2550@gmail.com
  • 11. First fare notes • First fare template.lvproj – Robot main.vi • Robot mode state machine • Global variables • Put AUTO ENABLE in Robot Global – Teleop.vi • Disable drive • Put messages into driver station – Periodic tasks.vi • Autoencoder reset create and put in global • Gripper state machine – Output to solenoide – Input from grip/release – Enum – Enum indicator put on robot global data – Run Template with driver station jimc2550@gmail.com
  • 12. First fare notes 2 • First fare bunnybot – Teleop put in message – Autonomous • Put message in driver station • Show state machine chart • Go through each step in state machine – Finds errors – Run with driver station – Run in highlight execution mode jimc2550@gmail.com