无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

電機驅動SimpleFOC的調試界面SimpleFOCStudio的安裝制作

2023-02-22 21:57 作者:湯姆yuan  | 我要投稿

電機驅動SimpleFOC的調試界面軟件SimpleFOCStudio是個開源的Python工具,目前不支持最新版本的Python 3.11, 需要低版本的3.9才能順利安裝,為方便不熟悉Python的小伙伴使用,特制作了一個安裝包,直接解壓或者安裝即可使用。

下載地址:

https://gitee.com/thomasyuangq/simple-focstudio-installer

安裝包使用Pyinstaller制作:

pyinstaller -w simpleFOCStudio.py --add-data “.\src\gui\resources\.;.\src\gui\resources”

需要使用–add-data 參數(shù)將軟件的工具條圖標添加到安裝包中。


EXE版本的安裝程序用inno setup工具打包。

?

手工安裝方法:

  1. 下載Python 3.9版本

  2. 運行:pip install -r "requirements.txt"

  3. python simpleFOCStudio.py

使用SimpleFOCStudio,需要在代碼中加入下面這些指令:

#include <SimpleFOC.h>


....


// include commander interface

Commander command = Commander(Serial);

void doMotor(char* cmd) { command.motor(&motor, cmd); }


void setup(){

? ....

? // add the motor to the commander interface

? // The letter (here 'M') you will provide to the SimpleFOCStudio

? command.add('M',doMotor,'motor');

? // tell the motor to use the monitoring

? motor.useMonitoring(Serial);

? motor.monitor_downsample = 0; // disable monitor at first - optional

? ...


}

void loop(){

? ....


? ....

? // real-time monitoring calls

? motor.monitor();

? // real-time commander calls

? command.run();

}

軟件界面如下:


電機驅動SimpleFOC的調試界面SimpleFOCStudio的安裝制作的評論 (共 條)

分享到微博請遵守國家法律
庐江县| 霞浦县| 福鼎市| 吕梁市| 大英县| 察隅县| 休宁县| 锦州市| 阳原县| 绥棱县| 北辰区| 彭阳县| 昌图县| 五家渠市| 习水县| 桃源县| 武汉市| 诏安县| 营口市| 云梦县| 洱源县| 凭祥市| 萨迦县| 竹溪县| 桦川县| 宣威市| 高邑县| 开江县| 新巴尔虎左旗| 北京市| 万宁市| 呼玛县| 华坪县| 江都市| 韩城市| 库车县| 吴江市| 南丹县| 平遥县| 湘乡市| 镇原县|