![]() |
pic: Programming is as easy as you make it.
|
Re: pic: Programming is as easy as you make it.
I had been told that it wan't possible to use while loops in Teleop. I guess I was wrong. This is cool!
|
Re: pic: Programming is as easy as you make it.
I'm pretty sure that wouldn't be good for use in teleop
|
Re: pic: Programming is as easy as you make it.
Quote:
|
Re: pic: Programming is as easy as you make it.
Quote:
Oh, well I guess you could do that then |
Re: pic: Programming is as easy as you make it.
Just wire something to the Loop Condition terminal so that it can end. While loops are useful for Autonomous too.
|
Re: pic: Programming is as easy as you make it.
Timed actions are best processed in Periodic Tasks
They will slow down your TeleOp code if placed there |
Re: pic: Programming is as easy as you make it.
This example is good for use in Autonomous and Periodic Tasks.
As shown, this example cannot be placed in Teleop. |
Re: pic: Programming is as easy as you make it.
I made this program up to help out someone who wanted to know if he did it right. based on all of your posts, I was able to help him a lot more. Thanks a ton!:)
|
Re: pic: Programming is as easy as you make it.
That is not the safest way to accomplish that task nor should it ever be in teleop. You should write the inputs from the joysticks to global variables and read them in period tasks in their appropriate loops.
|
Re: pic: Programming is as easy as you make it.
Yeah, I told him that. I haven't gotten a reply yet, though.
|
Re: pic: Programming is as easy as you make it.
Quote:
You can just reference the joystick in Periodic Tasks |
Re: pic: Programming is as easy as you make it.
Well, I'M not using the program. I recently uploaded a few pictures of my teleop program.
![]() ![]() ![]() |
Re: pic: Programming is as easy as you make it.
Quote:
...But if you do you can manipulate those variables in autonomous. |
Re: pic: Programming is as easy as you make it.
I'm just happy that the code WORKS.
|
| All times are GMT -5. The time now is 04:57. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi