RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
PowerJNI.java
1// TODO - RobotCore - Modified
2
3// Copyright (c) FIRST and other WPILib contributors.
4// Open Source Software; you can modify and/or share it under the terms of
5// the WPILib BSD license file in the root directory of this project.
6
7package org.wpilib.hardware.hal;
8
14public class PowerJNI { //extends JNIWrapper {
15 public static double getVinVoltage() {
16 throw new UnsupportedOperationException("Unimplemented method 'getVinVoltage'");
17 // return 0; // TODO - Must fix
18 }
19
20 public static double getUserVoltage3V3() {
21 throw new UnsupportedOperationException("Unimplemented method 'getUserVoltage3V3'");
22 // return 0; // TODO - Must fix
23 }
24
25 public static double getUserCurrent3V3() {
26 throw new UnsupportedOperationException("Unimplemented method 'getUserCurrent3V3'");
27 // return 0; // TODO - Must fix
28 }
29
30 public static void setUserEnabled3V3(boolean enabled) {
31 throw new UnsupportedOperationException("Unimplemented method 'setUserEnabled3V3'");
32 // TODO - Must fix
33 }
34
35 public static boolean getUserActive3V3() {
36 throw new UnsupportedOperationException("Unimplemented method 'getUserActive3v3'");
37 // return false; // TODO - Must fix
38 }
39
40 public static int getUserCurrentFaults3V3() {
41 throw new UnsupportedOperationException("Unimplemented method 'getUserCurrentFaluts3v3'");
42 // return 0; // TODO - Must fix
43 }
44
45 public static void resetUserCurrentFaults() {
46 throw new UnsupportedOperationException("Unimplemented method 'resetUserCurrentFaults'");
47 // TODO - Must fix
48 }
49
50 public static void setBrownoutVoltages(double brownoutVoltage, double recoveryVoltage) {
51 throw new UnsupportedOperationException("Unimplemented method 'setBrownoutVoltages'");
52 // TODO - Must fix
53 }
54
55 public static double getCPUTemp() {
56 throw new UnsupportedOperationException("Unimplemented method 'getCPUTemp'");
57 // return 0; // TODO - Must fix
58 }
59
60
61
62 // /**
63 // * Gets the Systemcore input voltage.
64 // *
65 // * @return the input voltage (volts)
66 // * @see "HAL_GetVinVoltage"
67 // */
68 // public static native double getVinVoltage();
69
70 // /**
71 // * Gets the 3V3 rail voltage.
72 // *
73 // * @return the 3V3 rail voltage (volts)
74 // * @see "HAL_GetUserVoltage3V3"
75 // */
76 // public static native double getUserVoltage3V3();
77
78 // /**
79 // * Gets the 3V3 rail current.
80 // *
81 // * @return the 3V3 rail current (amps)
82 // * @see "HAL_GetUserCurrent3V3"
83 // */
84 // public static native double getUserCurrent3V3();
85
86 // /**
87 // * Enables or disables the 3V3 rail.
88 // *
89 // * @param enabled whether the rail should be enabled
90 // */
91 // public static native void setUserEnabled3V3(boolean enabled);
92
93 // /**
94 // * Gets the active state of the 3V3 rail.
95 // *
96 // * @return true if the rail is active, otherwise false
97 // * @see "HAL_GetUserActive3V3"
98 // */
99 // public static native boolean getUserActive3V3();
100
101 // /**
102 // * Gets the fault count for the 3V3 rail.
103 // *
104 // * @return the number of 3V3 fault counts
105 // * @see "HAL_GetUserCurrentFaults3V3"
106 // */
107 // public static native int getUserCurrentFaults3V3();
108
109 // /** Resets the overcurrent fault counters for all user rails to 0. */
110 // public static native void resetUserCurrentFaults();
111
112 // /**
113 // * Set the voltages where the Systemcore will enter and recover from brownout.
114 // *
115 // * @param brownoutVoltage the voltage where the Systemcore will enter brownout
116 // * @param recoveryVoltage the voltage where the Systemcore will recover from brownout
117 // * @see "HAL_SetBrownoutVoltages"
118 // */
119 // public static native void setBrownoutVoltages(double brownoutVoltage, double recoveryVoltage);
120
121 // /**
122 // * Get the current CPU temperature in degrees Celsius.
123 // *
124 // * @return current CPU temperature in degrees Celsius
125 // */
126 // public static native double getCPUTemp();
127
128 // /** Utility class. */
129 // private PowerJNI() {}
130}