Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.
This repository was archived by the owner on May 8, 2018. It is now read-only.

Plotting Constant Data on Smart Dashboard #9

Open

Description

@tom131313

For example,
FRC-Examples/JAVA_CtreMagEncoder_SmartDash/src/org/usfirst/frc/team3539/robot/Robot.java
plots data and there is a comment in it that constant data are not plotted. To plot constant data add the following statements to "vary" the speed data:

// put this statement at beginning of method to initialize once
		 Boolean flipIncrement = false;

// put this block between the data supplier and data consumer
		if (flipIncrement) // fake out to keep plot going
		{
			speed += Math.ulp(speed);
			flipIncrement = false;
		}
		else flipIncrement = true;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions