Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InitialCommit #144

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ OBJSL = $(BINARY).o hwinit.o stm32scheduler.o params.o terminal.o terminal_prj.
chademo.o amperaheater.o amperacharger.o subaruvehicle.o iomatrix.o bmw_sbox.o NissanPDM.o teslaCharger.o extCharger.o vag_sbox.o \
daisychainbms.o simpbms.o outlanderCharger.o Can_OBD2.o cansdo.o TeslaDCDC.o BMW_E31.o F30_Lever.o \
CPC.o ElconCharger.o RearOutlanderinverter.o linbus.o VWheater.o JLR_G1.o JLR_G2.o Foccci.o digipot.o\
OutlanderHeartBeat.o E65_Lever.o leafbms.o V_Classic.o kangoobms.o OutlanderCanHeater.o
OutlanderHeartBeat.o E65_Lever.o leafbms.o V_Classic.o kangoobms.o OutlanderCanHeater.o NissLeafMng.o

OBJS = $(patsubst %.o,$(OUT_DIR)/%.o, $(OBJSL))
vpath %.c src/ libopeninv/src/
Expand Down
46 changes: 46 additions & 0 deletions include/NissLeafMng.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* This file is part of the ZombieVerter project.
*
* Copyright (C) 2021-2023 Tom de Bree <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
*/
#ifndef NISSLEAFMNG_H
#define NISSLEAFMNG_H

#include <stdint.h>
#include "params.h"
#include "canhardware.h"
#include "my_fp.h"
#include "my_math.h"
#include "utils.h"

class NissLeafMng
{

public:
static void Task10Ms(int16_t final_torque_request);
static void Task100Ms();
static void SetCanInterface(CanHardware* c);
static void SetPullInEVSE(bool pullInEVSE);
static void nissan_crc(uint8_t *data, uint8_t polynomial);


protected:

};

#endif
5 changes: 3 additions & 2 deletions include/param_prj.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define VER 2.21.A
#define VER 2.22.A


/* Entries must be ordered as follows:
Expand Down Expand Up @@ -153,6 +153,7 @@
VALUE_ENTRY(chgtyp, CHGTYPS, 2003 ) \
VALUE_ENTRY(lasterr, errorListString, 2004 ) \
VALUE_ENTRY(status, STATUS, 2005 ) \
VALUE_ENTRY(CanAct, ONOFF, 2107 ) \
VALUE_ENTRY(TorqDerate, LIMITREASON, 2102 ) \
VALUE_ENTRY(udc, "V", 2006 ) \
VALUE_ENTRY(udc2, "V", 2007 ) \
Expand Down Expand Up @@ -242,7 +243,7 @@
VALUE_ENTRY(powerheater, "W", 2098 ) \
VALUE_ENTRY(VehLockSt, ONOFF, 2100 ) \

//Next value Id: 2104
//Next value Id: 2108

//Dead params
/*
Expand Down
Loading
Loading