GithubHelp home page GithubHelp logo

wo2ni / tesla_calculator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sndnvaps/tesla_calculator

0.0 0.0 0.0 13.58 MB

This Project is base on https://github.com/visualfc/goqt, main purpose is make the calculate of Tesla Coil system more simpile.

Home Page: https://blog.sndnvaps.com/2019/04/16/App-Deploy-TC-Calculator.html

License: MIT License

Shell 1.82% Go 95.51% PowerShell 2.53% Batchfile 0.14%

tesla_calculator's Introduction

Tesla_calculator

用于计算特斯拉线圈各项参数的小计算工具,基于goqt开发

Go Report Card

After update images and conf,need to use go-bindata to update setting/images_bindata.go

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
  4. 执行编译命令 build.[bat|sh] 根据不同的平台进行选择
  5. 最终编译得到的程序为tesla_calculator

如何打包生成 可运行的程序安装包

Windows平台

  1. Windows平台使用 PowerShell执行 ExecPack.ps1 #首先要在Powershell中输入 ‘set-ExecutionPolicy RemoteSigned‘ 命令,再输入Y,以解除系统禁止运行脚本限制
  2. 如果你的Qt版本不是 5.11.1,你需要更换 Depends目录下面相应的文件
  3. 版本不是5.11.1的时候,还需要更换Depends\plugins目录下面所对应的系统文件,此目录对应QT安装目录里面的plugins\platforms

Linux平台

  1. 下载安装linuxdeployqt工具

  2. 把下载得到的linuxdeployqt-5-x86_64.AppImage重命名为linuxdeployqt,并复制到/usr/bin/目录里面

    mv linuxdeployqt-5-x86_64.AppImage linuxdeployqt
    
  3. 运行PackExecQt.sh

已经编译好的程序,请点击下载对应平台的版本

    Windows平台,下载 *-Win-x86.zip
    Linux平台,下载 *-Linux-*.AppImage (AppImage程序,下载直接就可以运行了)

How to change the defult User Interface

  1. change conf/app.ini,change the defaultLang to en-US or zh-CN what you like

     #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.ini

App Pics

pic1

pic2

pic2 pic3

License

tesla_calculator's People

Contributors

sndnvaps avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.