Skip to content

Commit c59efcb

Browse files
committed
voltage sensing
1 parent 98e4a4e commit c59efcb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Power Board/thrusters.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ void senseCurrent(float Tcurrents[]) {
112112
Tcurrents[7] = ((analogRead(TC_8) * 3.3) / 1023) / 0.005;
113113
}
114114

115-
void senseVoltage(float voltages[]) {
116-
115+
void senseVoltage(float Bvoltages[]) {
116+
Bvoltages[0] = analogRead(VBAT1_SENSE) * 1.6625 + 12.5;
117+
Bvoltages[1] = analogRead(VBAT2_SENSE) * 1.6625 + 12.5;
117118
}
118119

119120
void setup() {

0 commit comments

Comments
 (0)