mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Updated an incorrect voltage constant for the 5V input rail, and added
parenthesis to make the order of operations explicit. Fix for artf3728 Change-Id: I2dfbad03980c4154cf253fbb06792b8502fcca02
This commit is contained in:
@@ -46,7 +46,7 @@ float getUserCurrent6V(int32_t *status) {
|
||||
*/
|
||||
float getUserVoltage5V(int32_t *status) {
|
||||
initializePower(status);
|
||||
return power->readUserVoltage5V(status) / 4.096f * 0.004962f - 0.013f;
|
||||
return power->readUserVoltage5V(status) / 4.096f * 0.005962f - 0.013f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user