Go to Post But that is not all-FIRST is about teaching mentors what kids are like all over again. It's about closing the generation gap, creating bonds, life time friends, and skills that will last everyone involved a lifetime. - Team0 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2014, 18:59
B0sh B0sh is offline
Registered User
FRC #2078 (Robotic Wolves)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Louisiana
Posts: 6
B0sh is an unknown quantity at this point
Periodic Task Input

Originally I had a different post, but that has been resolved, but a new error was created...

Our robot's wheels have been moving every 2 to 3 seconds very slightly (maybe 5 degrees), and I have no idea why this is happening. It's happening somewhat randomly. I've looked through my code, and I don't even know where to begin to try and fix this error.

Can I get some help?

Last edited by B0sh : 15-02-2014 at 19:36.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2014, 19:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Periodic Task Input

Watch your speed controller status lights.
They should remain solid when they are in neutral, but if they blink a little when the unexpected movement occurs, then they probably need to be calibrated.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2014, 20:56
B0sh B0sh is offline
Registered User
FRC #2078 (Robotic Wolves)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Louisiana
Posts: 6
B0sh is an unknown quantity at this point
Re: Periodic Task Input

Thanks for the reply. We tried calibrating the motors, but that was unsuccessful. It almost looks like it started doing it even more. They all blink in unison when they fire. Whats really weird though is that the random movement happens on the 4 movement controllers, and not on the other 2 we have for other functions.

This is the guide we followed for calibrating the Jaguars, so if there was an error in the process, then let me know.

Quote:
Jaguar Motor Controller Getting Started Guide
To calibrate the servo-style PWM input for a specific range, connect a PWM source, then:
1. Hold down the USER switch with a straightened paper clip for 5 seconds.
2. The LED flashes Red and Green to indicate Calibration mode.
3. Instruct the controller to send a full-forward signal for one or more seconds.
4. Instruct the controller to send a full-reverse signal for one or more seconds.
5. The LED flashes Green and Yellow quickly to indicate a successful calibration.
The Jaguar samples these signals and centers the speed range and neutral position between these limits. A
calibration failure signals if an out-of-range signal is detected.
This condition is indicated by flashing the LED Red and Yellow.

Last edited by B0sh : 15-02-2014 at 20:59.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2014, 21:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Periodic Task Input

Your calibration steps are correct, so some questions about your code...

Do you set those drive motors in more than one vi or in more than a single place within a single vi?

Is there a lot going on in the vi where they are being set?
Loops, waits, etc.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2014, 09:52
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Periodic Task Input

<Same team as the OP

We are using a 4 motor / 4 jaguar / 2 split PWM cable setup.

Its basically all default code, where the only changes are inverting one sides motors with the built in inversion switches in default code, and then a multiplication function with -1 applies to the X axis to correct turning after the inversion.

We have the basic default code for compressor in begin.vi and periodic tasks.vi. Two more simple motor control/PWM codes to run ball feed and angle, but they dont seem to be affected the way the 4 drive motors are.

Our only other code runs in periodic tasks and its a sequential frame of solenoid functions.

The twitching really only moves the wheels like 5-10 degrees when the robot is blocked up and the wheels are suspended. It might not even be enough to move the robot when loaded and on the floor.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2014, 10:33
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Periodic Task Input

Does this happen in test mode, in disabled mode, both?

This will help determine if it is SW or other causes.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2014, 12:37
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Periodic Task Input

Not sure what test mode is. It does not happen in disabled.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2014, 13:31
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Periodic Task Input

You can put your robot into test mode using the driver station. That allows you to watch sensors that you've opened while the robot is safely disabled, and it allows you to drive actuators that you've opened when enabled. Note that periodic code will continue to run, even in test mode.

It also allows you to run test VIs that you write to calibrate or verify controlled mechanisms.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2014, 17:51
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Periodic Task Input

Quote:
Originally Posted by Greg McKaskle View Post
You can put your robot into test mode using the driver station. That allows you to watch sensors that you've opened while the robot is safely disabled, and it allows you to drive actuators that you've opened when enabled. Note that periodic code will continue to run, even in test mode.

It also allows you to run test VIs that you write to calibrate or verify controlled mechanisms.

Greg McKaskle
Will give that a shot, thanks.
Reply With Quote
  #10   Spotlight this post!  
Unread 18-02-2014, 15:42
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Periodic Task Input

We've seen this before on our robots. What does the dashboard report as your CPU utilization? If we're running at 100%, we see this on occasion. Do you have any unthrottled loops?
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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