diff --git a/include/BMW_E31.h b/include/BMW_E31.h index 81459ae..db66e3f 100644 --- a/include/BMW_E31.h +++ b/include/BMW_E31.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef BMW_E31_h #define BMW_E31_h diff --git a/include/BMW_E39.h b/include/BMW_E39.h index 1b84890..166d946 100644 --- a/include/BMW_E39.h +++ b/include/BMW_E39.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef BMW_E39_h #define BMW_E39_h diff --git a/include/BMW_E65.h b/include/BMW_E65.h index 2db060b..b38f279 100644 --- a/include/BMW_E65.h +++ b/include/BMW_E65.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef BMW_E65_h #define BMW_E65_h diff --git a/include/CPC.h b/include/CPC.h index d222475..fe71878 100644 --- a/include/CPC.h +++ b/include/CPC.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef CPC_h #define CPC_h diff --git a/include/Can_OBD2.h b/include/Can_OBD2.h index dbb601c..18aa281 100644 --- a/include/Can_OBD2.h +++ b/include/Can_OBD2.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef Can_OBD2_h #define Can_OBD2_h diff --git a/include/Can_OI.h b/include/Can_OI.h index 4642f28..7829be5 100644 --- a/include/Can_OI.h +++ b/include/Can_OI.h @@ -1,4 +1,3 @@ - /* * This file is part of the tumanako_vc project. * @@ -19,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef CAN_OI_H #define CAN_OI_H diff --git a/include/Can_VAG.h b/include/Can_VAG.h index d003100..231fa78 100644 --- a/include/Can_VAG.h +++ b/include/Can_VAG.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef Can_VAG_h #define Can_VAG_h diff --git a/include/ElconCharger.h b/include/ElconCharger.h index 95c4ba9..fbd973d 100644 --- a/include/ElconCharger.h +++ b/include/ElconCharger.h @@ -1,10 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ #ifndef ElconCharger_h #define ElconCharger_h -/* This library supports the various Elcon charger protocol based chargers - -*/ +/* This library supports the various Elcon charger protocol based chargers */ #include #include "my_fp.h" diff --git a/include/Foccci.h b/include/Foccci.h index bad416f..ff7286f 100644 --- a/include/Foccci.h +++ b/include/Foccci.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef Foccci_h #define Foccci_h diff --git a/include/GS450H.h b/include/GS450H.h index 052e020..2558143 100644 --- a/include/GS450H.h +++ b/include/GS450H.h @@ -1,9 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef GS450H_h #define GS450H_h -/* Communication with Lexus GS450H and potentiall any Toyota Hybrid inverter using sync serial - -*/ +/* Communication with Lexus GS450H and potentiall any Toyota Hybrid inverter using sync serial */ #include #include "my_fp.h" diff --git a/include/NissLeafMng.h b/include/NissLeafMng.h index b50040a..1d99e09 100644 --- a/include/NissLeafMng.h +++ b/include/NissLeafMng.h @@ -18,6 +18,7 @@ * * */ + #ifndef NISSLEAFMNG_H #define NISSLEAFMNG_H diff --git a/include/NissanPDM.h b/include/NissanPDM.h index 8194592..c39d0b2 100644 --- a/include/NissanPDM.h +++ b/include/NissanPDM.h @@ -18,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef NISSANPDM_H #define NISSANPDM_H diff --git a/include/NoInverter.h b/include/NoInverter.h index b824cb5..2db9ca9 100644 --- a/include/NoInverter.h +++ b/include/NoInverter.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef NoInverter_h #define NoInverter_h diff --git a/include/NoVehicle.h b/include/NoVehicle.h index dd2e823..e24682e 100644 --- a/include/NoVehicle.h +++ b/include/NoVehicle.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef NOVEHICLE_H_INCLUDED #define NOVEHICLE_H_INCLUDED diff --git a/include/OutlanderCanHeater.h b/include/OutlanderCanHeater.h index 1332692..2aff415 100644 --- a/include/OutlanderCanHeater.h +++ b/include/OutlanderCanHeater.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef OUTLANDERCANHEATER_H #define OUTLANDERCANHEATER_H diff --git a/include/OutlanderHeartBeat.h b/include/OutlanderHeartBeat.h index 910bce4..e239ffd 100644 --- a/include/OutlanderHeartBeat.h +++ b/include/OutlanderHeartBeat.h @@ -20,6 +20,7 @@ *Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. * */ + #ifndef OUTLANDERHEARTBEAT_H #define OUTLANDERHEARTBEAT_H diff --git a/include/VWheater.h b/include/VWheater.h index 593c5f9..3187a97 100644 --- a/include/VWheater.h +++ b/include/VWheater.h @@ -17,6 +17,7 @@ * along with this program. If not, see . * Controls the VW LIN based heater as : https://openinverter.org/wiki/Volkswagen_Heater */ + #ifndef VWHEATER_H #define VWHEATER_H diff --git a/include/V_Classic.h b/include/V_Classic.h index 46382ba..7aab7ff 100644 --- a/include/V_Classic.h +++ b/include/V_Classic.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef V_Classic_h #define V_Classic_h diff --git a/include/amperacharger.h b/include/amperacharger.h index 689862a..54edadd 100644 --- a/include/amperacharger.h +++ b/include/amperacharger.h @@ -1,10 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ #ifndef amperacharger_h #define amperacharger_h -/* TODO: Add can info for control of Chevy Volt , Opel/Vauxhaul Ampera charger here. - -*/ +/* TODO: Add can info for control of Chevy Volt , Opel/Vauxhaul Ampera charger here. */ #include #include "my_fp.h" diff --git a/include/amperaheater.h b/include/amperaheater.h index fc98772..dfd0872 100644 --- a/include/amperaheater.h +++ b/include/amperaheater.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef AMPERAHEATER_H #define AMPERAHEATER_H diff --git a/include/bmw_sbox.h b/include/bmw_sbox.h index 2f1b67d..429ffc6 100644 --- a/include/bmw_sbox.h +++ b/include/bmw_sbox.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef bmw_sbox_h #define bmw_sbox_h diff --git a/include/charger.h b/include/charger.h index 10d7f0e..2d41b95 100644 --- a/include/charger.h +++ b/include/charger.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef charger_h #define charger_h diff --git a/include/chargerhw.h b/include/chargerhw.h index 78ed61b..8424b95 100644 --- a/include/chargerhw.h +++ b/include/chargerhw.h @@ -1,6 +1,3 @@ -#ifndef CHARGERHW_H_INCLUDED -#define CHARGERHW_H_INCLUDED - /* * This file is part of the tumanako_vc project. * @@ -20,6 +17,9 @@ * along with this program. If not, see . */ +#ifndef CHARGERHW_H_INCLUDED +#define CHARGERHW_H_INCLUDED + #include "canhardware.h" class Chargerhw diff --git a/include/chargerint.h b/include/chargerint.h index 8849c08..257fb6f 100644 --- a/include/chargerint.h +++ b/include/chargerint.h @@ -1,6 +1,3 @@ -#ifndef CHARGERINT_H_INCLUDED -#define CHARGERINT_H_INCLUDED - /* * This file is part of the tumanako_vc project. * @@ -20,6 +17,9 @@ * along with this program. If not, see . */ +#ifndef CHARGERINT_H_INCLUDED +#define CHARGERINT_H_INCLUDED + #include "canhardware.h" class Chargerint diff --git a/include/errormessage_prj.h b/include/errormessage_prj.h index ae72022..7f855f3 100644 --- a/include/errormessage_prj.h +++ b/include/errormessage_prj.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef ERRORMESSAGE_PRJ_H_INCLUDED #define ERRORMESSAGE_PRJ_H_INCLUDED diff --git a/include/extCharger.h b/include/extCharger.h index ffae1fd..4a22fd3 100644 --- a/include/extCharger.h +++ b/include/extCharger.h @@ -1,10 +1,29 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef EXTCHARGER_H #define EXTCHARGER_H -/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. - -*/ +/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. */ #include #include "digio.h" diff --git a/include/heater.h b/include/heater.h index ef3dc91..5a19da4 100644 --- a/include/heater.h +++ b/include/heater.h @@ -1,7 +1,27 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef HEATER_H #define HEATER_H - #include #include "my_math.h" #include "my_fp.h" diff --git a/include/i3LIM.h b/include/i3LIM.h index 8c25e6f..70bfaac 100644 --- a/include/i3LIM.h +++ b/include/i3LIM.h @@ -1,9 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef i3LIM_h #define i3LIM_h -/* This library supports the BMW i3 LIM charge interface module. - -*/ +/* This library supports the BMW i3 LIM charge interface module. */ #include "chargerint.h" #include "canhardware.h" diff --git a/include/inverter.h b/include/inverter.h index b9c394a..51fdf9c 100644 --- a/include/inverter.h +++ b/include/inverter.h @@ -1,6 +1,3 @@ -#ifndef INVERTER_H_INCLUDED -#define INVERTER_H_INCLUDED - /* * This file is part of the tumanako_vc project. * @@ -20,6 +17,9 @@ * along with this program. If not, see . */ +#ifndef INVERTER_H_INCLUDED +#define INVERTER_H_INCLUDED + #include "canhardware.h" class Inverter diff --git a/include/iomatrix.h b/include/iomatrix.h index 71874b9..6812919 100644 --- a/include/iomatrix.h +++ b/include/iomatrix.h @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef IOMATRIX_H #define IOMATRIX_H diff --git a/include/isa_shunt.h b/include/isa_shunt.h index 119f2ab..b28d62e 100644 --- a/include/isa_shunt.h +++ b/include/isa_shunt.h @@ -1,12 +1,33 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef SimpleISA_h #define SimpleISA_h -/* This library supports the ISA Scale IVT Modular current/voltage sensor device. These devices measure current, up to three voltages, and provide temperature compensation. - This library was written by Jack Rickard of EVtv - http://www.evtv.me copyright 2016 - You are licensed to use this library for any purpose, commercial or private, - without restriction. - -*/ +/* This library supports the ISA Scale IVT Modular current/voltage sensor + * device. These devices measure current, up to three voltages, and provide + * temperature compensation. This library was written by Jack Rickard of EVtv - + * http://www.evtv.me copyright 2016. You are licensed to use this library for + * any purpose, commercial or private, without restriction. + */ #include #include "my_fp.h" diff --git a/include/leafbms.h b/include/leafbms.h index 6301a0a..2828b76 100644 --- a/include/leafbms.h +++ b/include/leafbms.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef LEAFBMS_H #define LEAFBMS_H #include "bms.h" diff --git a/include/leafinv.h b/include/leafinv.h index dbaf1fe..a421d15 100644 --- a/include/leafinv.h +++ b/include/leafinv.h @@ -18,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef LEAFINV_H #define LEAFINV_H diff --git a/include/noHeater.h b/include/noHeater.h index 1be51f6..63d94d3 100644 --- a/include/noHeater.h +++ b/include/noHeater.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef NOHEATER_H #define NOHEATER_H diff --git a/include/nocharger.h b/include/nocharger.h index b69645e..afc4a1d 100644 --- a/include/nocharger.h +++ b/include/nocharger.h @@ -1,10 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ #ifndef nocharger_h #define nocharger_h -/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. - -*/ +/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. */ #include #include "my_fp.h" diff --git a/include/notused.h b/include/notused.h index b50b182..165509b 100644 --- a/include/notused.h +++ b/include/notused.h @@ -1,10 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ #ifndef notused_h #define notused_h -/* Dummy library for whrn no charge interface is used. - -*/ +/* Dummy library for whrn no charge interface is used. */ #include #include "chargerint.h" diff --git a/include/outlanderCharger.h b/include/outlanderCharger.h index 63d8150..5ba84b0 100644 --- a/include/outlanderCharger.h +++ b/include/outlanderCharger.h @@ -17,12 +17,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - *Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. - * */ + #ifndef OUTLANDERCHARGER_H #define OUTLANDERCHARGER_H +/* Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. */ + #include #include "my_fp.h" #include "my_math.h" diff --git a/include/outlanderinverter.h b/include/outlanderinverter.h index a605985..9855ee3 100644 --- a/include/outlanderinverter.h +++ b/include/outlanderinverter.h @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef OUTLANDERINVERTER_H #define OUTLANDERINVERTER_H diff --git a/include/param_prj.h b/include/param_prj.h index add87ae..20db773 100644 --- a/include/param_prj.h +++ b/include/param_prj.h @@ -18,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #define VER 2.22.A diff --git a/include/rearoutlanderinverter.h b/include/rearoutlanderinverter.h index 9ca03a3..b6f266b 100644 --- a/include/rearoutlanderinverter.h +++ b/include/rearoutlanderinverter.h @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef REAROUTLANDERINVERTER_H #define REAROUTLANDERINVERTER_H diff --git a/include/shifter.h b/include/shifter.h index fc465be..0d84085 100644 --- a/include/shifter.h +++ b/include/shifter.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef SHIFTER_H_INCLUDED #define SHIFTER_H_INCLUDED #include diff --git a/include/subaruvehicle.h b/include/subaruvehicle.h index fdd1702..78fdea3 100644 --- a/include/subaruvehicle.h +++ b/include/subaruvehicle.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef SUBARUVEHICLE_H #define SUBARUVEHICLE_H diff --git a/include/temp_meas.h b/include/temp_meas.h index f44526c..2dbab7b 100644 --- a/include/temp_meas.h +++ b/include/temp_meas.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef TEMP_MEAS_H_INCLUDED #define TEMP_MEAS_H_INCLUDED diff --git a/include/teslaCharger.h b/include/teslaCharger.h index 5e391d8..8de3e0c 100644 --- a/include/teslaCharger.h +++ b/include/teslaCharger.h @@ -1,9 +1,28 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef TESLACHARGER_H #define TESLACHARGER_H -/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. - -*/ +/* This library supports the various opensource tesla charger controllers e.g. PCS , Gen2/3 etc. */ #include "chargerhw.h" #include "canhardware.h" diff --git a/include/utils.h b/include/utils.h index 538ec53..026d608 100644 --- a/include/utils.h +++ b/include/utils.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef UTILS_H #define UTILS_H diff --git a/include/vag_sbox.h b/include/vag_sbox.h index 08b0c73..8498435 100644 --- a/include/vag_sbox.h +++ b/include/vag_sbox.h @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #ifndef vag_sbox_h #define vag_sbox_h diff --git a/include/vehicle.h b/include/vehicle.h index 3bd0d80..985c6af 100644 --- a/include/vehicle.h +++ b/include/vehicle.h @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef VEHICLE_H_INCLUDED #define VEHICLE_H_INCLUDED diff --git a/src/BMW_E31.cpp b/src/BMW_E31.cpp index 5cdc056..6c523d7 100644 --- a/src/BMW_E31.cpp +++ b/src/BMW_E31.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "BMW_E31.h" #include "hwinit.h" #include "my_math.h" diff --git a/src/BMW_E39.cpp b/src/BMW_E39.cpp index 51779c8..54e308c 100644 --- a/src/BMW_E39.cpp +++ b/src/BMW_E39.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "BMW_E39.h" #include "stm32_can.h" #include "utils.h" diff --git a/src/BMW_E65.cpp b/src/BMW_E65.cpp index 2fb58f7..099529b 100644 --- a/src/BMW_E65.cpp +++ b/src/BMW_E65.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include #include "stm32_can.h" #include "params.h" diff --git a/src/CPC.cpp b/src/CPC.cpp index 73b76da..73529a6 100644 --- a/src/CPC.cpp +++ b/src/CPC.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include static uint8_t ChargePort_IsoStop = 0; static uint16_t ChargePort_ACLimit = 0; diff --git a/src/Can_OI.cpp b/src/Can_OI.cpp index ac5e356..fa099f1 100644 --- a/src/Can_OI.cpp +++ b/src/Can_OI.cpp @@ -1,5 +1,4 @@ /* - * * Copyright (C) 2020 Johannes Huebner * Damien Maguire * Yes I'm really writing software now........run.....run away....... diff --git a/src/Can_VAG.cpp b/src/Can_VAG.cpp index ab4c445..0722b0c 100644 --- a/src/Can_VAG.cpp +++ b/src/Can_VAG.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "Can_VAG.h" #include "params.h" diff --git a/src/E65_Lever.cpp b/src/E65_Lever.cpp index f8d8ddd..e56b179 100644 --- a/src/E65_Lever.cpp +++ b/src/E65_Lever.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "E65_Lever.h" static uint8_t shiftPos=0xe1; //contains byte to display gear position on dash.default to park diff --git a/src/ElconCharger.cpp b/src/ElconCharger.cpp index 6a4225f..e31a5da 100644 --- a/src/ElconCharger.cpp +++ b/src/ElconCharger.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include static bool ChRun=false; diff --git a/src/F30_Lever.cpp b/src/F30_Lever.cpp index 306d65a..a973bba 100644 --- a/src/F30_Lever.cpp +++ b/src/F30_Lever.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "F30_Lever.h" #define Off 0x00 diff --git a/src/Foccci.cpp b/src/Foccci.cpp index 6e8fe1b..9d87c6e 100644 --- a/src/Foccci.cpp +++ b/src/Foccci.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include static uint8_t ChargePort_IsoStop = 0; static uint16_t ChargePort_ACLimit = 0; diff --git a/src/JLR_G1.cpp b/src/JLR_G1.cpp index ca87616..a0f8cd5 100644 --- a/src/JLR_G1.cpp +++ b/src/JLR_G1.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "JLR_G1.h" #define JLR_Park 0 diff --git a/src/JLR_G2.cpp b/src/JLR_G2.cpp index 2a6ce22..0e08c48 100644 --- a/src/JLR_G2.cpp +++ b/src/JLR_G2.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "JLR_G2.h" uint8_t DirJLRG2 = 0; diff --git a/src/NissLeafMng.cpp b/src/NissLeafMng.cpp index d161c2f..847c0bc 100644 --- a/src/NissLeafMng.cpp +++ b/src/NissLeafMng.cpp @@ -15,11 +15,8 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - * */ - #include static bool BMSspoof = true; diff --git a/src/OutlanderHeartBeat.cpp b/src/OutlanderHeartBeat.cpp index dbd247c..ed6be58 100644 --- a/src/OutlanderHeartBeat.cpp +++ b/src/OutlanderHeartBeat.cpp @@ -17,13 +17,12 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - *Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. - * */ - #include +/* Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. */ + bool EnableEVSE = false; bool CanConfigure = false; bool DualCan = false; diff --git a/src/RearOutlanderinverter.cpp b/src/RearOutlanderinverter.cpp index ffdd912..db4bae3 100644 --- a/src/RearOutlanderinverter.cpp +++ b/src/RearOutlanderinverter.cpp @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "rearoutlanderinverter.h" #include "my_math.h" #include "params.h" diff --git a/src/TeslaDCDC.cpp b/src/TeslaDCDC.cpp index 8ed68fc..0d2875d 100644 --- a/src/TeslaDCDC.cpp +++ b/src/TeslaDCDC.cpp @@ -16,7 +16,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include + /* This is an interface for The Tesla GEN2 DCDC converter * https://openinverter.org/wiki/Tesla_Model_S/X_DC/DC_Converter */ diff --git a/src/V_Classic.cpp b/src/V_Classic.cpp index 78b9b02..5f843ec 100644 --- a/src/V_Classic.cpp +++ b/src/V_Classic.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "V_Classic.h" #include "hwinit.h" #include diff --git a/src/amperacharger.cpp b/src/amperacharger.cpp index 4b890aa..ee8b50c 100644 --- a/src/amperacharger.cpp +++ b/src/amperacharger.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include "amperacharger.h" diff --git a/src/bmw_sbox.cpp b/src/bmw_sbox.cpp index bad40b0..a5cef77 100644 --- a/src/bmw_sbox.cpp +++ b/src/bmw_sbox.cpp @@ -17,16 +17,16 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - - *Implements control of the contactors in the BMW PHEV battery box "SBOX" unit. - *Reads batter parameters from SBOX. - *See : https://github.com/damienmaguire/BMW_SBox -*/ - - + */ #include +/* + * Implements control of the contactors in the BMW PHEV battery box "SBOX" unit. + * Reads batter parameters from SBOX. + * See : https://github.com/damienmaguire/BMW_SBox + */ + int32_t SBOX::Amperes; int32_t SBOX::Ah; int32_t SBOX::KW; diff --git a/src/chademo.cpp b/src/chademo.cpp index 8861403..e3dfad9 100644 --- a/src/chademo.cpp +++ b/src/chademo.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "chademo.h" diff --git a/src/digipot.cpp b/src/digipot.cpp index d6c7120..4339ecb 100644 --- a/src/digipot.cpp +++ b/src/digipot.cpp @@ -1,5 +1,25 @@ -#include "digipot.h" +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ +#include "digipot.h" void DigiPot::SetPot1Step() { DigIo::pot1_cs.Clear(); diff --git a/src/extCharger.cpp b/src/extCharger.cpp index cc9a223..2e241c3 100644 --- a/src/extCharger.cpp +++ b/src/extCharger.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include static bool chargeAllow=false; diff --git a/src/hwinit.cpp b/src/hwinit.cpp index e529b3e..0110ef4 100644 --- a/src/hwinit.cpp +++ b/src/hwinit.cpp @@ -18,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include #include #include diff --git a/src/i3LIM.cpp b/src/i3LIM.cpp index d19049d..5d97975 100644 --- a/src/i3LIM.cpp +++ b/src/i3LIM.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include #include "params.h" @@ -114,7 +135,6 @@ void i3LIMClass::DecodeCAN(int id, uint32_t* data) } void i3LIMClass::handle3B4(uint32_t data[2]) //Lim data - { /* 0x3B4 D4 low nible: status pilot diff --git a/src/iomatrix.cpp b/src/iomatrix.cpp index 7b832b7..03d4ace 100644 --- a/src/iomatrix.cpp +++ b/src/iomatrix.cpp @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "iomatrix.h" DigIo* const IOMatrix::paramToPin[] = { &DigIo::gp_out1, &DigIo::gp_out2, &DigIo::gp_out3, diff --git a/src/isa_shunt.cpp b/src/isa_shunt.cpp index 0f37056..543d3ae 100644 --- a/src/isa_shunt.cpp +++ b/src/isa_shunt.cpp @@ -1,12 +1,14 @@ -/* This library supports ISA Scale IVT Modular current/voltage sensor device. These devices measure current, up to three voltages, and provide temperature compensation. - - This library was written by Jack Rickard of EVtv - http://www.evtv.me - copyright 2014 - You are licensed to use this library for any purpose, commercial or private, - without restriction. - -*/ - +/* + * This library supports ISA Scale IVT Modular current/voltage sensor device. + * These devices measure current, up to three voltages, and provide temperature + * compensation. + * + * This library was written by Jack Rickard of EVtv - http://www.evtv.me + * copyright 2014 + * + * You are licensed to use this library for any purpose, commercial or private, + * without restriction. + */ #include #include "my_fp.h" diff --git a/src/outlanderCharger.cpp b/src/outlanderCharger.cpp index 32d3a71..49b47f4 100644 --- a/src/outlanderCharger.cpp +++ b/src/outlanderCharger.cpp @@ -16,15 +16,13 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - *Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. - * */ - #include #include "OutlanderHeartBeat.h" +/* Control of the Mitsubishi Outlander PHEV on board charger (OBC) and DCDC Converter. */ + uint8_t outlanderCharger::chgStatus; uint8_t outlanderCharger::evseDuty; float outlanderCharger::dcBusV; diff --git a/src/outlanderinverter.cpp b/src/outlanderinverter.cpp index c648823..db39fda 100644 --- a/src/outlanderinverter.cpp +++ b/src/outlanderinverter.cpp @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include "outlanderinverter.h" #include "my_math.h" #include "params.h" diff --git a/src/stm32_vcu.cpp b/src/stm32_vcu.cpp index d6d0b0f..8c04aa3 100644 --- a/src/stm32_vcu.cpp +++ b/src/stm32_vcu.cpp @@ -20,6 +20,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include #include #include diff --git a/src/subaruvehicle.cpp b/src/subaruvehicle.cpp index e8b7c5e..3e92626 100644 --- a/src/subaruvehicle.cpp +++ b/src/subaruvehicle.cpp @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #include #include #include "subaruvehicle.h" diff --git a/src/temp_meas.cpp b/src/temp_meas.cpp index 11c153f..da97b19 100644 --- a/src/temp_meas.cpp +++ b/src/temp_meas.cpp @@ -18,6 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #define __TEMP_LU_TABLES #include "temp_meas.h" #include "my_math.h" diff --git a/src/teslaCharger.cpp b/src/teslaCharger.cpp index 963fbdd..4a309b8 100644 --- a/src/teslaCharger.cpp +++ b/src/teslaCharger.cpp @@ -1,5 +1,23 @@ -#include "teslaCharger.h" +/* + * This file is part of the Zombieverter project. + * + * Copyright (C) 2023 Damien Maguire + * + * 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 . + */ +#include "teslaCharger.h" #include "params.h" #include "my_math.h" @@ -12,13 +30,10 @@ static uint16_t HVpwr=0; static uint16_t calcBMSpwr=0; - void teslaCharger::SetCanInterface(CanHardware* c) { can = c; - can->RegisterUserMessage(0x108); - } void teslaCharger::DecodeCAN(int id, uint32_t data[2]) @@ -26,8 +41,8 @@ void teslaCharger::DecodeCAN(int id, uint32_t data[2]) uint8_t* bytes = (uint8_t*)data; if (id == 0x108) { - if(bytes[0]==0xAA) HVreq=true; - if(bytes[0]==0xCC) HVreq=false; + if(bytes[0]==0xAA) HVreq=true; + if(bytes[0]==0xCC) HVreq=false; } } @@ -51,18 +66,14 @@ void teslaCharger::Task100Ms() counter_109++; if(counter_109 >= 0xF) counter_109 = 0; can->Send(0x109, (uint32_t*)bytes,8); - } - bool teslaCharger::ControlCharge(bool RunCh, bool ACReq) { - bool dummy=RunCh; - dummy=dummy; - ChRun=ACReq; + bool dummy = RunCh; + dummy = dummy; + ChRun = ACReq; if(HVreq) return true; if(!HVreq) return false; return false; - } - diff --git a/src/utils.cpp b/src/utils.cpp index fd01128..dfab573 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1,3 +1,24 @@ +/* + * This file is part of the ZombieVeter project. + * + * Copyright (C) 2020 Johannes Huebner + * 2021-2022 Damien Maguire + * Yes I'm really writing software now........run.....run away....... + * + * 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 . + */ + #include "utils.h" #include "iomatrix.h" diff --git a/src/vag_sbox.cpp b/src/vag_sbox.cpp index 566a203..ae912e9 100644 --- a/src/vag_sbox.cpp +++ b/src/vag_sbox.cpp @@ -1,4 +1,5 @@ -/* * This file is part of the ZombieVerter project. +/* + * This file is part of the ZombieVerter project. * * Copyright (C) 2010 Johannes Huebner * Copyright (C) 2010 Edward Cheeseman @@ -23,8 +24,6 @@ *See : https://github.com/jamiejones85/VW-GTE-ContactorBox/tree/main */ - - #include int16_t VWBOX::Amperes;