summaryrefslogtreecommitdiff
path: root/smartdashboard/src/edu/wpi/first/smartdashboard/types/named/PIDSubsystemType.java
blob: 610985eb947151d64dfde7baee33af0291986f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package edu.wpi.first.smartdashboard.types.named;

import edu.wpi.first.smartdashboard.livewindow.elements.PIDSubsystem;
import edu.wpi.first.smartdashboard.types.NamedDataType;

/**
 *
 * @author Joe Grinstead
 */
public class PIDSubsystemType extends NamedDataType {

    public static final String LABEL = "PIDSubsystem";

    private PIDSubsystemType() {
        super(LABEL, PIDSubsystem.class, SubsystemType.get(), PIDType.get());
    }

    public static NamedDataType get() {
        if (NamedDataType.get(LABEL) != null) {
            return NamedDataType.get(LABEL);
        } else {
            return new PIDSubsystemType();
        }
    }
}