當前位置: 首頁>>代碼示例>>Java>>正文


Java LiveWindow.run方法代碼示例

本文整理匯總了Java中edu.wpi.first.wpilibj.livewindow.LiveWindow.run方法的典型用法代碼示例。如果您正苦於以下問題:Java LiveWindow.run方法的具體用法?Java LiveWindow.run怎麽用?Java LiveWindow.run使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在edu.wpi.first.wpilibj.livewindow.LiveWindow的用法示例。


在下文中一共展示了LiveWindow.run方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: runPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
@Override
public void runPeriodic(double elapsedTime)
{
    switch (test)
    {
        case SENSORS_TEST:
            //
            // Allow TeleOp to run so we can control the robot in sensors test mode.
            //
            super.runPeriodic(elapsedTime);
            doSensorsTest();
            break;

        case DRIVE_MOTORS_TEST:
            doDriveMotorsTest();
            break;

        case LIVE_WINDOW:
            LiveWindow.run();
            break;

        default:
            break;
    }
}
 
開發者ID:trc492,項目名稱:Frc2017FirstSteamWorks,代碼行數:26,代碼來源:FrcTest.java

示例2: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode.
 */
@Override
public void testPeriodic() {
  try {
    logger.trace("testPeriodic()");
    LiveWindow.run();
    vision.setVisionEnabled(true);
  } catch (Throwable ex) {
    logger.error("testPeriodic error", ex);
    ex.printStackTrace();
  }
}
 
開發者ID:ligerbots,項目名稱:Steamworks2017Robot,代碼行數:15,代碼來源:Robot.java

示例3: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic() {
	LiveWindow.run();
	Robot.driveBase.EnableDriveBase();
	Robot.driveBase.DriveAutonomous();
	SmartDashboard.putNumber("AV Distance", RobotMap.AverageDistance);
}
 
開發者ID:RobotsByTheC,項目名稱:CMonster2017,代碼行數:10,代碼來源:Robot.java

示例4: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic() {
    LiveWindow.run();
    
    while (limitSwitch.get()){
		Timer.delay(0);
		pneumatics.setDS(true);
	}
	pneumatics.setDS(false);
}
 
開發者ID:wjaneal,項目名稱:liastem,代碼行數:13,代碼來源:Robot.java

示例5: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
@Override
public void testPeriodic() {
	LiveWindow.run();
}
 
開發者ID:2141-Spartonics,項目名稱:Spartonics-Code,代碼行數:8,代碼來源:Robot.java

示例6: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic() {
	LiveWindow.run();
}
 
開發者ID:2141-Spartonics,項目名稱:Spartonics-Code,代碼行數:7,代碼來源:Robot.java

示例7: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
@Override
public void testPeriodic() {
    LiveWindow.run();
}
 
開發者ID:FRCteam6414,項目名稱:FRC6414program,代碼行數:8,代碼來源:Robot.java

示例8: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic() {
    LiveWindow.run();
}
 
開發者ID:FRC-6413,項目名稱:steamworks-java,代碼行數:7,代碼來源:Robot.java

示例9: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
@Override
public void testPeriodic() {
	LiveWindow.run();
	// Robot.vision.addCrosshairs();
}
 
開發者ID:2729StormRobotics,項目名稱:StormRobotics2017,代碼行數:6,代碼來源:Robot.java

示例10: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/** runs at ~50hz when in test mode */
public void testPeriodic() {
	LiveWindow.run(); 
}
 
開發者ID:wh1ter0se,項目名稱:PowerUp-2018,代碼行數:5,代碼來源:Robot.java

示例11: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
// @Override
public void testPeriodic() {
	LiveWindow.run();
}
 
開發者ID:Team4914,項目名稱:2017-emmet,代碼行數:8,代碼來源:Robot.java

示例12: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic()
	{
		RobotMap.sL.SystemLoggerWriteTimeline("Test_Periodic");
		LiveWindow.run();
	}
 
開發者ID:first95,項目名稱:FRC2017,代碼行數:9,代碼來源:Robot.java

示例13: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic() {
    LiveWindow.run();
    SmartDashboard.putNumber("Ultrasonic Inches", sensorBase.getDistance());
}
 
開發者ID:newheights,項目名稱:RobotBuilderTest,代碼行數:8,代碼來源:Robot.java

示例14: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
public void testPeriodic() {
	LiveWindow.run();
}
 
開發者ID:Prospect-Robotics,項目名稱:2016Robot,代碼行數:4,代碼來源:Robot.java

示例15: testPeriodic

import edu.wpi.first.wpilibj.livewindow.LiveWindow; //導入方法依賴的package包/類
/**
 * This function is called periodically during test mode
 */
public void testPeriodic()
{
    LiveWindow.run();
    DashboardData.update();
}
 
開發者ID:Team-2502,項目名稱:RobotCode2017,代碼行數:9,代碼來源:Robot.java


注:本文中的edu.wpi.first.wpilibj.livewindow.LiveWindow.run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。