RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
CANStatus.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.hardware.hal.can;
6
8public class CANStatus {
10 public double percentBusUtilization;
11
13 public int busOffCount;
14
16 public int txFullCount;
17
20
23
25 public CANStatus() {}
26
36 public void setStatus(
38 int busOffCount,
39 int txFullCount,
42 this.percentBusUtilization = percentBusUtilization;
43 this.busOffCount = busOffCount;
44 this.txFullCount = txFullCount;
45 this.receiveErrorCount = receiveErrorCount;
46 this.transmitErrorCount = transmitErrorCount;
47 }
48}
void setStatus(double percentBusUtilization, int busOffCount, int txFullCount, int receiveErrorCount, int transmitErrorCount)