mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
add inverter folder
This commit is contained in:
parent
a3583b6897
commit
fc0c71975d
16 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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;
|
|
@ -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)
|
|
@ -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;
|
|
@ -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
|
||||
|
|
@ -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)
|
|
@ -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. */
|
||||
|
|
@ -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)
|
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue