Go to Post ...UFH nominations are like jello, there is always room for one more. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #19   Spotlight this post!  
Unread 12-02-2015, 15:34
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Jared Russell View Post
Those measurements are from the PWM port, right?

Can you post the full source code of the IterativeRobot test you just made?
Correct -- the measurements are from the PWM port.

Code:
package org.usfirst.frc.team2559.robot;

import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Talon;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the IterativeRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class Robot extends IterativeRobot {
    /**
     * This function is run when the robot is first started up and should be
     * used for any initialization code.
     */
	
	Talon talon0 = new Talon(3);
	Talon talon1 = new Talon(4);
		
    public void robotInit() {
    	

    }

    /**
     * This function is called periodically during autonomous
     */
    public void autonomousPeriodic() {
    	talon0.set(-0.2);
    	talon1.set(0.2);
    }

    public void teleopInit() {
    }
    /**
     * This function is called periodically during operator control
     */
    public void teleopPeriodic() {
    	
    }
    
    /**
     * This function is called periodically during test mode
     */
    public void testPeriodic() {
    
    }
    
}
At this point, due to the discrepancies in the PWM readings, I'm medium-high confident that the issue is being caused by the RoboRIO itself and not motor controllers. At the moment I'm testing trying not splitting the PWM cables and declaring each motor individually and just doing RobotDrive.tankDrive().

Are those readings normal? Has anyone ever had this issue of the PWM signals having about a 200ms delay hooked up to an oscilloscope? Is this expected and does calibrating the talons somehow take care of this?
 


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 13:37.

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