mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-01 13:01:24 -07:00
Added startLineNum parameter to updateStatus method.
This commit is contained in:
@ -208,7 +208,7 @@ public class FtcTeleOp extends FtcOpMode
|
||||
// Display subsystem status.
|
||||
if (RobotParams.Preferences.doStatusUpdate)
|
||||
{
|
||||
robot.updateStatus();
|
||||
robot.updateStatus(2);
|
||||
}
|
||||
}
|
||||
} //periodic
|
||||
|
@ -252,13 +252,15 @@ public class Robot
|
||||
|
||||
/**
|
||||
* This method update all subsystem status on the dashboard.
|
||||
*
|
||||
* @param startLineNum specifies the first Dashboard line for printing status.
|
||||
*/
|
||||
public void updateStatus()
|
||||
public void updateStatus(int startLineNum)
|
||||
{
|
||||
double currTime = TrcTimer.getCurrentTime();
|
||||
if (currTime > nextStatusUpdateTime)
|
||||
{
|
||||
int lineNum = 2;
|
||||
int lineNum = startLineNum;
|
||||
nextStatusUpdateTime = currTime + RobotParams.Robot.DASHBOARD_UPDATE_INTERVAL;
|
||||
if (robotDrive != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user