|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: New Programmer
Now I'm trying to insert a process much like this which will set a servo to 90 activate a relay forward and then set both of them back to their natural position
but it seems to be running too fast and starving the drive system any pointers ![]() |
|
#2
|
|||||
|
|||||
|
Re: New Programmer
Unless we see what you're actually doing, we won't be able to give much in the way of help. Show us your code, not the example you're emulating.
|
|
#3
|
|||
|
|||
|
Re: New Programmer
oh sorry yes here
|
|
#4
|
|||
|
|||
|
Re: New Programmer
If you place the code into teleop, it will prevent teleop from running frequently enough. Try moving it to Periodic tasks.
Greg McKaskle |
|
#5
|
|||
|
|||
|
Re: New Programmer
I can't be the only LabVIEW developer that despises the use of the feedback node, can I? IMO, while feedback nodes *can* make a diagram cleaner, they actually make it *harder* to understand, as compared to using the equivalent shift register.
|
|
#6
|
|||
|
|||
|
Re: New Programmer
I attempted this and it still says it is starving the drive loop
|
|
#7
|
|||||
|
|||||
|
Re: New Programmer
You can attach your vi's directly to a post.
Show us your Teleop.vi & Periodic.vi, and any other vi you might have added code to. The code you posted looks fine as long as it's in Periodic Tasks.vi (it would not work in Teleop). Last edited by Mark McLeod : 12-02-2013 at 17:40. |
|
#8
|
|||
|
|||
|
Re: New Programmer
Quote:
Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: New Programmer
I almost never use feedback nodes, but I find myself using feed forward nodes quite frequently. They make more sense to me because the flow of the code keeps moving forward. If I'm in a loop, though, I'll always use shift registers.
|
|
#10
|
||||
|
||||
|
Re: New Programmer
Quote:
|
|
#11
|
||||
|
||||
|
Re: New Programmer
As far as I know, they're only called feedback nodes. Changing the direction doesn't change their functionality. It just makes the code 'flow' more smoothly sometimes.
|
|
#12
|
||||
|
||||
|
Re: New Programmer
Quote:
But it does go forward...so I think I'm gonna stick to the "feed forward" name. ![]() |
|
#13
|
|||
|
|||
|
Re: New Programmer
Rather than feed forward, how about previous value or delay by one or some name that explains its purpose rather than its appearance.
Greg McKaskle |
|
#14
|
|||
|
|||
|
Re: New Programmer
Quote:
For my non-FRC applications, I REALLY like the JKI string-based state machine template. |
|
#15
|
|||
|
|||
|
Re: New Programmer
Here are my tele op and periodic vis neither has much extra really
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|