Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Best way to improve my coding skills for next year? (http://www.chiefdelphi.com/forums/showthread.php?t=116587)

bumblebee3339 01-05-2013 08:35

Best way to improve my coding skills for next year?
 
What is the best way to improve my coding skills in LabVIEW for the next season?

I want to learn how to have more control on my robot,
do more complex things in autonomous mode,
and learn how to do things with the vision processing.

Please advice me about websites to learn from or things I should focus on.
Thank you! :)

tilky 01-05-2013 15:38

Re: Best way to improve my coding skills for next year?
 
http://team358.org/files/programming...2009-/LabVIEW/ has a lot of code snippets for any function of the robot.

https://decibel.ni.com/content/community/first/frc has tutorials from National Instruments themselves. A good place to look

Chris Hibner 01-05-2013 16:21

Re: Best way to improve my coding skills for next year?
 
I would say the most important thing is to get the simulation tools working. Once you have that, you can then begin to develop and test your ideas without needing a real robot. That is great for two big reasons: 1) you can develop and test your code from the comfort of your home, and 2) you don't have to worry about breaking something if you make a mistake.

After you get the simulation running, there are a lot of ideas on chiefdelphi if you search. Here are a few things to try:

- Shooter speed control: bang-bang vs. PID

- Arm control: use an encoder or potentiometer with a PID controller to control an arm to pre-set posititions.

- Autonomous: use wheel encoders and a gyro to keep track of distance and heading. Use PID to keep your robot driving straight and to drive a set distance.

- Autonomous: control your autonomous routines through some sort of script

inkspell4 01-05-2013 21:36

Quote:

Originally Posted by tilky (Post 1270832)
http://team358.org/files/programming...2009-/LabVIEW/ has a lot of code snippets for any function of the robot.

https://decibel.ni.com/content/community/first/frc has tutorials from National Instruments themselves. A good place to look

One thing that i have always found important when looking at code is that you understand:

-how it works
-why it works
-when it doesn't work
-what is happening behind the scenes

It is important to not only understand that the code or function does something but you should understand to a certain degree why and how it does it.

For working at home away from the robot you can also use labview with an arduino and develop good coding habits and begin advancing your knowledge of control structures

Also don't be afraid to break off and learn Anouther language as learning how to do something in many different ways will help you understand the logic

bumblebee3339 02-05-2013 11:38

Re: Best way to improve my coding skills for next year?
 
Quote:

Originally Posted by Chris Hibner (Post 1270857)
I would say the most important thing is to get the simulation tools working. Once you have that, you can then begin to develop and test your ideas without needing a real robot. That is great for two big reasons: 1) you can develop and test your code from the comfort of your home, and 2) you don't have to worry about breaking something if you make a mistake.

After you get the simulation running, there are a lot of ideas on chiefdelphi if you search. Here are a few things to try:

- Shooter speed control: bang-bang vs. PID

- Arm control: use an encoder or potentiometer with a PID controller to control an arm to pre-set posititions.

- Autonomous: use wheel encoders and a gyro to keep track of distance and heading. Use PID to keep your robot driving straight and to drive a set distance.

- Autonomous: control your autonomous routines through some sort of script

Great idea :)
what is bang-bang?
and how does the algorithm of driving straight with PID works?

Thx for the help :)
Is there a thread with all of these ideas in one place?

Chris Hibner 02-05-2013 13:36

Re: Best way to improve my coding skills for next year?
 
Quote:

Originally Posted by bumblebee3339 (Post 1271305)
Great idea :)
what is bang-bang?
and how does the algorithm of driving straight with PID works?

Thx for the help :)
Is there a thread with all of these ideas in one place?

No, they're not in one place - you'll need to search.

Here's a thread on bang-bang vs. PID for shooter speed control: http://www.chiefdelphi.com/forums/sh...highlight=bang

bumblebee3339 03-05-2013 12:41

Re: Best way to improve my coding skills for next year?
 
Quote:

Originally Posted by Chris Hibner (Post 1271373)
No, they're not in one place - you'll need to search.

Here's a thread on bang-bang vs. PID for shooter speed control: http://www.chiefdelphi.com/forums/sh...highlight=bang

Thx.

What about the driving straight with PID? How does it work?

Jared Russell 03-05-2013 12:47

Re: Best way to improve my coding skills for next year?
 
Quote:

Originally Posted by bumblebee3339 (Post 1271903)
Thx.

What about the driving straight with PID? How does it work?

Your gyro tells you what your heading is. When you start driving straight, remember what the heading is. As you drive, if your heading drifts clockwise, steer a little bit counter-clockwise. And visa versa.

You could also use the difference between left and right encoder counts to figure out what direction you are driving, but the gyro has the nice property of not caring whether or not your wheels are slipping.

bulbajackel 05-05-2013 19:39

Re: Best way to improve my coding skills for next year?
 
Quote:

Originally Posted by inkspell4 (Post 1271038)
One thing that i have always found important when looking at code is that you understand:

-how it works
-why it works
-when it doesn't work
-what is happening behind the scenes

It is important to not only understand that the code or function does something but you should understand to a certain degree why and how it does it.

For working at home away from the robot you can also use labview with an arduino and develop good coding habits and begin advancing your knowledge of control structures

Also don't be afraid to break off and learn Anouther language as learning how to do something in many different ways will help you understand the logic

I second this, knowing why your programming behave the reason it does can help identify what you need to do to do anything you want your robot to do. I also suggest just looking at the object pallet as a whole to see what you can work with. Also do some experiments with the blocks, most are self explanatory, but once you get used to using them, they can take you far!


All times are GMT -5. The time now is 09:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi