BMS_T2
Dependencies: INA226
Diff: main.cpp
- Revision:
- 3:61174d4de67d
- Parent:
- 2:3bbbe439ec11
--- a/main.cpp Tue Oct 13 06:26:34 2020 +0000 +++ b/main.cpp Tue Oct 13 07:20:11 2020 +0000 @@ -5,8 +5,7 @@ #include "LTC6811.h" #include "CAN.h" #include "INA226.hpp" -#include "max6675.h" -#include "max6675_2.h" + #define UI_BUFFER_SIZE 64 @@ -28,10 +27,7 @@ DigitalOut BAT_MIN_safty(p21); DigitalOut BAT_MAX_safty(p22); INA226 VCmonitor(i2c); -SPI spi(p11,p12,p13); -max6675 max(spi,p18); -SPI spi_2(p11,p12,p13); -max6675_2 max_2(spi_2,p21); + void run_command(uint32_t cmd); @@ -263,8 +259,7 @@ } - max.select(); - max_2.deselect_2(); +/* //平均化処理 @@ -313,7 +308,7 @@ //BAT_Current = C; - + */ }