add inverter folder

This commit is contained in:
lenvm 2023-11-06 00:18:48 +01:00
parent a3583b6897
commit fc0c71975d
16 changed files with 21 additions and 21 deletions

View file

@ -12,7 +12,7 @@
#include "CAN_config.h"
#include "Adafruit_NeoPixel.h"
#include "src/battery/BATTERIES.h"
#include "INVERTERS.h"
#include "src/inverter/INVERTERS.h"
//CAN parameters
CAN_device_t CAN_cfg; // CAN Config

View file

@ -1,6 +1,6 @@
#include "BYD-CAN.h"
#include "ESP32CAN.h"
#include "CAN_config.h"
#include "../../ESP32CAN.h"
#include "../../CAN_config.h"
/* Do not change code below unless you are sure what you are doing */
static unsigned long previousMillis2s = 0; // will store last time a 2s CAN Message was send

View file

@ -1,8 +1,8 @@
#ifndef BYD_CAN_H
#define BYD_CAN_H
#include <Arduino.h>
#include "ESP32CAN.h"
#include "USER_SETTINGS.h"
#include "../../ESP32CAN.h"
#include "../../USER_SETTINGS.h"
extern uint16_t SOC;
extern uint16_t StateOfHealth;

View file

@ -1,6 +1,6 @@
#include "PYLON-CAN.h"
#include "ESP32CAN.h"
#include "CAN_config.h"
#include "../../ESP32CAN.h"
#include "../../CAN_config.h"
#define SEND_0 //If defined, the messages will have ID ending with 0 (useful for some inverters)
//#define SEND_1 //If defined, the messages will have ID ending with 1 (useful for some inverters)

View file

@ -1,8 +1,8 @@
#ifndef PYLON_CAN_H
#define PYLON_CAN_H
#include <Arduino.h>
#include "ESP32CAN.h"
#include "USER_SETTINGS.h"
#include "../../ESP32CAN.h"
#include "../../USER_SETTINGS.h"
extern uint16_t SOC;
extern uint16_t StateOfHealth;

View file

@ -1,6 +1,6 @@
#include "SMA-CAN.h"
#include "ESP32CAN.h"
#include "CAN_config.h"
#include "../../ESP32CAN.h"
#include "../../CAN_config.h"
//TODO, change CAN sending routine once confirmed that 500ms interval is OK for this battery type

View file

@ -1,8 +1,8 @@
#ifndef SMA_CAN_H
#define SMA_CAN_H
#include <Arduino.h>
#include "ESP32CAN.h"
#include "USER_SETTINGS.h"
#include "../../ESP32CAN.h"
#include "../../USER_SETTINGS.h"
extern uint16_t SOC; //SOC%, 0-100.00 (0-10000)
extern uint16_t StateOfHealth; //SOH%, 0-100.00 (0-10000)

View file

@ -1,6 +1,6 @@
#include "SOFAR-CAN.h"
#include "ESP32CAN.h"
#include "CAN_config.h"
#include "../../ESP32CAN.h"
#include "../../CAN_config.h"
/* This implementation of the SOFAR can protocol is halfway done. What's missing is implementing the inverter replies, all the CAN messages are listed, but the can sending is missing. */

View file

@ -1,8 +1,8 @@
#ifndef SOFAR_CAN_H
#define SOFAR_CAN_H
#include <Arduino.h>
#include "ESP32CAN.h"
#include "USER_SETTINGS.h"
#include "../../ESP32CAN.h"
#include "../../USER_SETTINGS.h"
// These parameters need to be mapped for the inverter
extern uint16_t SOC; //SOC%, 0-100.00 (0-10000)

View file

@ -1,11 +1,11 @@
#ifndef SOLAX_CAN_H
#define SOLAX_CAN_H
#include <Arduino.h>
#include "ESP32CAN.h"
#include "config.h"
#include "USER_SETTINGS.h"
#include "../../ESP32CAN.h"
#include "../../config.h"
#include "../../USER_SETTINGS.h"
#include "ACAN2515.h"
#include "../../ACAN2515.h"
extern ACAN2515 can;
extern uint16_t SOC;