Skip to content

Commit

Permalink
Merge pull request #36 from Rione/fix/battery-voltage
Browse files Browse the repository at this point in the history
⚠️ fix battery voltage
  • Loading branch information
Tamagoham authored Jul 2, 2024
2 parents 05fd737 + efcc90c commit eac3d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signalreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func Update(chupdate chan bool) {
log.Println("Robot ID", packet.GetRobotId(), " is associated with ", addr.IP.String())
}

battery_voltage[packet.GetRobotId()] = float32(packet.GetBatteryVoltage())
battery_voltage[packet.GetRobotId()] = float32(packet.GetBatteryVoltage()) / 10
cap_power[packet.GetRobotId()] = uint8(packet.GetCapPower())

}
Expand Down

0 comments on commit eac3d34

Please sign in to comment.