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: BLDCmotorDriver.cpp
- Revision:
- 11:ad2f1bdeebfa
- Parent:
- 10:8bb64d5e0b29
--- a/BLDCmotorDriver.cpp Mon May 30 08:02:01 2022 +0000
+++ b/BLDCmotorDriver.cpp Sat Sep 10 03:35:34 2022 +0000
@@ -62,8 +62,8 @@
speed = rpm * 0.10518; //3750とか0.010518は、excelで計算している。ファイル名「」
//加速の制限
//dc_limit1 = (0.0063*speed*speed + 0.8107*speed + 20.241) / 100; //加速側制限.elsxの式(黄色) //制御確認用モータ用の加速調整(電源電圧13Vにする) //そのまま車載モータにも使えるかも実際に確認する必要あり。
- //dc_limit1 = (0.0078*speed*speed + 0.8563*speed + 20.488) / 100; //加速側制限.elsxの式(オレンジ色) これよりも強くする
- dc_limit1 = (0.0069*speed*speed + 1.1881*speed + 19.388) / 100; //加速側制限.elsxの式(灰色)
+ dc_limit1 = (0.0071*speed*speed + 1.3383*speed + 20.124) / 100; //加速側制限.elsxの式(オレンジ色) これよりも強くする
+ //dc_limit1 = (0.0069*speed*speed + 1.1881*speed + 19.388) / 100; //加速側制限.elsxの式(灰色)
//70km/hでduty制限なくなる(dc_limit>=100)
if( tempDutyCycle > dc_limit1 ){ tempDutyCycle = dc_limit1; } //加速制限の式で求めた制限値を超えている場合、その値を代入する