mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +00:00
comments corrected
This commit is contained in:
parent
3be599e627
commit
2b9e1c1d48
1 changed files with 1 additions and 2 deletions
|
@ -17,7 +17,7 @@ if (getConfigValue("digital_output_device")=="beaglebone"):
|
|||
import Adafruit_BBIO.GPIO as GPIO
|
||||
|
||||
if (getConfigValue("charge_parameter_backend")=="chademo"):
|
||||
# In case we run on beaglebone, we want to use GPIO ports.
|
||||
# In case we use the CHAdeMO backend, we want to use CAN
|
||||
import can
|
||||
|
||||
class hardwareInterface():
|
||||
|
@ -425,7 +425,6 @@ class hardwareInterface():
|
|||
self.addToTrace("CHAdeMO: Set capacity to %d" % message.data[6])
|
||||
self.capacity = message.data[6]
|
||||
|
||||
#TODO: determine maximum charger current and voltage and also actual current and voltage
|
||||
msg = can.Message(arbitration_id=0x108, data=[ 0, self.maxChargerVoltage & 0xFF, self.maxChargerVoltage >> 8, self.maxChargerCurrent, 0, 0, 0, 0], is_extended_id=False)
|
||||
self.canbus.send(msg)
|
||||
#Report unspecified version 10, this makes our custom implementation send the momentary
|
||||
|
|
Loading…
Reference in a new issue