Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 5:f07de56debf3
- Parent:
- 4:e57b023e41f3
--- a/main.cpp Thu Apr 30 08:05:06 2020 +0000 +++ b/main.cpp Thu Apr 08 10:04:55 2021 +0000 @@ -4,7 +4,8 @@ #include "LTC681x.h" #include "LTC6811.h" #include "INA226.hpp" -//#include "MSCFileSystem.h" + + #define UI_BUFFER_SIZE 64 #define SERIAL_TERMINATOR '\n' @@ -24,7 +25,6 @@ DigitalOut led2(LED2); DigitalOut BAT_MIN_safty(p21); DigitalOut BAT_MAX_safty(p22); -//MSCFileSystem msc("usb"); // Mount flash drive under the name "msc" //Timer timer; //書き込み時間を計測するタイマ // CAN関係 @@ -135,7 +135,7 @@ for (int i=0; i < bms_ic[0].ic_reg.cell_channels; i++) { //pc.printf("C%d:", i+1); - pc.printf("%.4f, ",bms_ic[current_ic].cells.c_codes[i]*0.0001); + printf("%.4f, ",bms_ic[current_ic].cells.c_codes[i]*0.0001); BAT_SUM = bms_ic[current_ic].cells.c_codes[i] + BAT_SUM; if(bms_ic[current_ic].cells.c_codes[i] > 10000){ @@ -203,13 +203,14 @@ } } } + int main(void) { uint32_t user_command; //short int BAT_C = 2322; pc.baud(115200); - printf("main()\n\r"); + //printf("main()\n\r"); canSlave.attach(&Handler_canRecieve, CAN::RxIrq); //CAN受信割り込みの設定 msgSlave1.id = canSlaveID; //CAN送信側(slave)のIDを決定 msgSlave1.len = 8; //CAN送信側で送るデータのバイト数