Go to Post If they need a place where they can get a chance to learn interpersonal skills (like a team), it might just help them to become well-adjusted adults, as opposed to pathologically antisocial engineers (who got good grades). - Tristan Lall [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 12-02-2012, 19:44
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

We enable it and it gets the backboard but doesn't follow it
and thank you I didn't know that
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2012, 21:29
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Gimbal help!

If it zeros, that means it is at least sending signals to the servos. Are you sure though that you are sending signal to the right pins? The system automatically zeros all PWM outputs, coded or not.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2012, 00:44
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

I think its just code problems because when I try to control it using a control on the front panel it moves just fine
I think it is either the point between finding the backboard and moving the servos or something.
is it possible to get the servo position through the servo or is there zero feedback from it? because I am trying to find the difference between the center of the screen and the center of the backboard and then I take the servo get angle and convert the pixels to degree aspects then add it to said angle.
Am I approaching this completely wrong?
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2012, 07:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Gimbal help!

The servo feedback is all internal to the device. It's reasonable to treat it as something that just goes where you tell it to. If you want to know the servo position, you can assume it's what you last commanded it to be.

When you open the Robot Main vi and click the "Run" arrow at the top of the window, you can open other block diagrams and place probes on the wires to see what value they have while the program runs. Do that to trace where your servo angle command is getting lost.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2012, 19:37
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Gimbal help!

probe the values, but do a quick sanity check first and make sure there are actually servos connected to the outputs you are writing to.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
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 22:06.

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