private void EngageContactors(Battery battery) { CanPacket bmuOneEngaged = new CanPacket(0x6F7); bmuOneEngaged.SetUint8(1, BMU.PRECHARGE_STATUS_RUN); bmuOneEngaged.SetUint8(0, 0x04); CanPacket bmuTwoEngaged = new CanPacket(0x2F7); bmuTwoEngaged.SetUint8(1, BMU.PRECHARGE_STATUS_RUN); bmuTwoEngaged.SetUint8(0, 0x04); CanPacket bmuOneES = new CanPacket(0x6FD); bmuOneES.SetUint32(0, 0x00000080); CanPacket bmuTwoES = new CanPacket(0x2FD); bmuTwoES.SetUint32(0, 0x00000080); if (battery.GetBMU(0) != null) { battery.GetBMU(0).CanPacketReceived(bmuOneEngaged); battery.GetBMU(0).CanPacketReceived(bmuOneES); } if (battery.GetBMU(1) != null) { battery.GetBMU(1).CanPacketReceived(bmuTwoEngaged); battery.GetBMU(1).CanPacketReceived(bmuTwoES); } }