Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sndnvaps/tesla_calculator
This Project is base on https://github.com/visualfc/goqt, main purpose is make the calculate of Tesla Coil system more simpile.
https://github.com/sndnvaps/tesla_calculator
golang goqt qt5 tesla-coil
Last synced: 22 days ago
JSON representation
This Project is base on https://github.com/visualfc/goqt, main purpose is make the calculate of Tesla Coil system more simpile.
- Host: GitHub
- URL: https://github.com/sndnvaps/tesla_calculator
- Owner: sndnvaps
- License: mit
- Created: 2017-03-04T09:31:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T15:37:16.000Z (over 5 years ago)
- Last Synced: 2024-11-15T14:09:03.153Z (about 1 month ago)
- Topics: golang, goqt, qt5, tesla-coil
- Language: Go
- Homepage: https://blog.sndnvaps.com/2019/04/16/App-Deploy-TC-Calculator.html
- Size: 13.3 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tesla_calculator
用于计算特斯拉线圈各项参数的小计算工具,基于[goqt](https://github.com/visualfc/goqt)开发
[![Go Report Card](https://goreportcard.com/badge/github.com/sndnvaps/tesla_calculator)](https://goreportcard.com/report/github.com/sndnvaps/tesla_calculator)
After update [images](images) and [conf](conf),need to use [go-bindata](https://github.com/go-bindata/go-bindata) to update [setting/images_bindata.go](setting/images_bindata.go)
```bash
go get -u github.com/go-bindata/go-bindata/...
go-bindata -pkg setting -o setting/images_bindata.go images/ conf/ conf/locale #Generate images_bindata.go
```
具备的功能:1. 计算初级线圈电感,谐振频率
2. 计算次级线圈的电感,谐振频率,寄生电容
3. 计算次级线圈与初级线圈的耦合系数
4. 计算电弧长度
5. 计算顶端电容(球形,环形顶端电容)
6. 计算品质系数Q
7. 多语言支持(MultiLang Support Now)
Support platform(Qt 5.11.1)
```
Linux
Windows
Raspberry pi 3b(not test other pi)
```如何编译
1. 先安装 QT开发环境(现在支持Qt5.11.1)
2. 安装golang开发环境(现在支持go1.11)
3. 再安装[goqt](https://github.com/visualfc/goqt)
4. 执行编译命令 build.[bat|sh] 根据不同的平台进行选择
5. 最终编译得到的程序为*tesla_calculator*
如何打包生成 可运行的程序安装包Windows平台
1. Windows平台使用 PowerShell执行 [ExecPack.ps1](ExecPack.ps1) #首先要在Powershell中输入 ‘set-ExecutionPolicy RemoteSigned‘ 命令,再输入Y,以解除系统禁止运行脚本限制
2. 如果你的Qt版本不是 5.11.1,你需要更换 [Depends](Depends)目录下面相应的文件
3. 版本不是5.11.1的时候,还需要更换[Depends\plugins](Depends\plugins)目录下面所对应的系统文件,此目录对应QT安装目录里面的`plugins\platforms`
Linux平台
1. 下载安装[linuxdeployqt工具](https://github.com/probonopd/linuxdeployqt/releases)
2. 把下载得到的linuxdeployqt-5-x86_64.AppImage重命名为linuxdeployqt,并复制到/usr/bin/目录里面
mv linuxdeployqt-5-x86_64.AppImage linuxdeployqt
3. 运行PackExecQt.sh
已经编译好的程序,请[点击下载](https://github.com/sndnvaps/tesla_calculator/releases)对应平台的版本
Windows平台,下载 *-Win-x86.zip
Linux平台,下载 *-Linux-*.AppImage (AppImage程序,下载直接就可以运行了)
# How to change the defult User Interface1. change [conf/app.ini](conf/app.ini#L4),change the defaultLang to en-US or zh-CN what you like
```ini
#filename = conf/app.ini
apps = tesla_calculator[i18n]
defaultLang = en-US
langs = en-US,zh-CN
names = English,简体中文
```# Using portable mode
If there is a directory with the same name as the AppImage plus .config, then $XDG_CONFIG_HOME will automatically be set to it before executing the playload application
The DefLang Setting will be save to *.AppImage.config/custom.iniApp Pics
![pic1](pictures/pic_mainform.png "MainForm v1")
![pic2](pictures/pic_mainform-new.png "mainForm v2 with SettingMenu")
![pic2](pictures/pic_all_forms.png "中文界面")
![pic3](pictures/pic_all_forms-en-US.png "Eng User-Interface")
## License
#### [MIT](https://sndnvaps.mit-license.org/2017)