mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-02 13:31: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.
|
// Display subsystem status.
|
||||||
if (RobotParams.Preferences.doStatusUpdate)
|
if (RobotParams.Preferences.doStatusUpdate)
|
||||||
{
|
{
|
||||||
robot.updateStatus();
|
robot.updateStatus(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} //periodic
|
} //periodic
|
||||||
|
@ -252,13 +252,15 @@ public class Robot
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method update all subsystem status on the dashboard.
|
* 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();
|
double currTime = TrcTimer.getCurrentTime();
|
||||||
if (currTime > nextStatusUpdateTime)
|
if (currTime > nextStatusUpdateTime)
|
||||||
{
|
{
|
||||||
int lineNum = 2;
|
int lineNum = startLineNum;
|
||||||
nextStatusUpdateTime = currTime + RobotParams.Robot.DASHBOARD_UPDATE_INTERVAL;
|
nextStatusUpdateTime = currTime + RobotParams.Robot.DASHBOARD_UPDATE_INTERVAL;
|
||||||
if (robotDrive != null)
|
if (robotDrive != null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user