android genymotion模拟器怎么使用以及和google提供的模拟器性能对比

本文详细介绍了Genymotion安卓模拟器的安装与使用方法,并通过安兔兔跑分对比了其与Google官方模拟器的性能差距,同时展示了如何在Eclipse中安装Genymotion插件及调试OpenGL程序。
界面有更新,相当流畅

genymotion是一款号称速度最快性能最好的android模拟器,它基于Oracle VMVirtualBox。支持GPS、重力感应、光、温度等诸多传感器;支持OpenGL3D加速;电池电量模拟;能够运行在windows、linux、mac系统下;并提供的有eclipse下的插件,可以支持在eclipse下进行应用开发测试。

     (一)首先介绍下如何下载并运行genymotion模拟器

    http://www.genymotion.com/网站上点击sign up按钮开始进行注册。

     填写相关注册信息

    完成注册后会提示你有邮件发到你上一步填写的邮箱去激活账户

    在邮箱里激活刚注册的账户

    激活刚注册的账户会提示你可以开始下载genymotion

    登陆刚注册的账户

   选择下载genymotion

   选择包含virtualbox的genymotion-1.0-vbox.exe进行下载

    下载完genymotion-1.0-vbox.exe,运行该exe按照默认的选项一路安装下去即可

    安装完成后在桌面上会发现genymotion命令行工具图标:GenymotionShell;genymotion程序图标:Genymotion:Genymotion;以及虚拟机Oracle VMVirtualBox的图标。

 

    点击Genymotion图标运行genymotion会提示你需要创建虚拟设备,点击yes按钮开始创建虚拟设备。

    使用注册好的用户名和密码连接服务器

   连接好服务器后开始添加自己需要的虚拟机

    按Next按钮创建虚拟设备

    点击Next

    点击Create按钮

    创建完成

    运行虚拟设备

    设置android SDK目录

    再次运行genymotion中的虚拟设备

   使用起来确实比google提供的模拟器流畅不少

 

     (二)安装安兔兔进行测分

     genymotion模拟器的安兔兔测试得分

 

    google模拟器的安兔兔测试得分:

    安兔兔测得在同一台电脑上同是Nexus 480X800的虚拟设备genymotion分值高达13836,而http://blog.youkuaiyun.com/yearafteryear/article/details/9255431测试得到的google模拟器只有区区953,genymotion在各项参数上均表现好不少。

    (三)在eclipse下安装genymotion插件

     启动eclipse,选择Help->InstallNew Software菜单

    点击add按钮

    填入Genymobile、http://plugins.genymotion.com/eclipse点击OK按钮

    选择genymotion相关插件选项进行安装

    接受相关协议

    忽略相关警告

    提示重启eclipse即已经完成genymotion插件的安装,点击yes按钮重启eclipse

     重启eclipse会在工具栏上发现genymotion的图标,点击即可启动该插件。

    第一次启动genymotion插件需要填入genymotion的安装目录:C:ProgramFilesGenymobileGenymotion

      (四)调试应用程序,这里我调试一个OpenGL的程序。发现OpenGL的程序在genymotion上运行的很好。

    点击eclipse上的genymotion插件图标,在弹出的对话框选择以前创建的虚拟设备启动。

    在eclipse下的工程项目上单击鼠标右键,在弹出的菜单里选择Run as->Run Configurations.

    在RunConfigurations对话框选择下面的选项即可

   之后运行工程项目即可发现当前的这个opengl项目在genymotion上能很流畅的运行

     (五)genymotionshell命令行工具

    可在genymotionshell下输入相关指令获取一些信息或者设置一些参数之类

    genymotion shell支持的命令行如下所示:

Command line options

  • -h Printhelp
  • -r ip_address Connect tospecific Genymotion Virtual Device
  • -c "command" Execute the givencommand in genyshell environment and return
  • -f file Execute thecontent of the file. Each command per line

Available commands

  • battery getmode
    Return the current battery mode of the selected virtual device. Themode can onlybe:           
    • host: The virtual battery reflect the host battery(if exists)
    • manual: In this mode, you can set the level andstatus battery values
  • battery setmode
    Set the battery mode. The mode can onlybe:           
    • host: The virtual battery reflect the host battery(if exists)
    • manual: In this mode, you can set the level andstatus battery values
  • battery getlevel
    Return the current battery amount of power. The value can only bebetween 0% and 100%.
               If the battery mode is "host", the returned value is the hostvalue.         
  • battery setlevel
               Set the current battery amount of power. The value can only bebetween 0% and 100%.
               Set the battery level force the "manual" mode: if the last mode was"host", then it's turned to"manual"         
  • battery getstatus
    Return the current battery status. There are 4 possiblestatus:            
    • Discharging: The power supply is disconnected andthe battery isdischarging.             
    • Charging: The power supply is connected and thebattery ischarging.             
    • Full: The battery isfull.             
    • Unknown: Sometimes, the battery status cannot beestablished, it happens when there is no hostbattery.           
  • battery setstatus
    Set the current battery status. There are 4 possiblestatus:           
    • Discharging: The power supply is disconnected andthe battery isdischarging.             
    • Charging: The power supply is connected and thebattery ischarging.             
    • Full: The battery isfull.             
    • Unknown: Sometimes, the battery status cannot beestablished, it happens when there is no hostbattery.           

 

  • devices list
    List available Genymotion virtual devices and provides details likecurrent states or IP address.
  • devices ping
    Send a ping message to check if virtual device if responding
  • devices refresh
    Refresh Genymotion virtual device list. Use it to keep the listup-to-date.
  • devices select
    Select the Genymotion virtual device you want to interactwith.
  • devices show
    List available Genymotion virtual devices and provides details likecurrent states or IP address

 

  • gps activate
    Activate the GPS sensor (if not already activated)
  • gps desactivate
    Desactivate the GPS sensor (if activated)
  • gps getlatitude
    Return the actual latitude (if GPS is activated AND already has alatitude) or 0
  • gps setlatitude
    Set latitude (and activate GPS if not allready activated)
  • gps getlongitude
    Return the actual longitude (if GPS is activated AND allready has alongitude) or 0
  • gps setlongitude
    Set longitude (and activate GPS if not allready activated)
  • gps getaltitude
    Return the actual altitude (if GPS is activated AND allready has aaltitude) or 0
  • gps setaltitude
    Set altitude (and activate GPS if not allready activated)
  • gps getaccuracy
    Return the actual accuracy in meters (if GPS is activated ANDallready has a accuracy) or 0
  • gps setaccuracy
    Set accuracy (and activate GPS if not allready activated)
  • gps getorientation
    Return the actual orientation in meters (if GPS is activated ANDallready has a orientation) or 0
  • gps setorientation
    Set orientation (and activate GPS if not allready activated)

 

  • android version
    Return the Android version of the selected virtual device
  • build number
    Return the genymotion shell build number
  • help
    Prompt the help.
  • pause
    Pause execution (in number of seconds).
  • version
    Return GenyShell version.
  • exit or quit
    Close Genymotion Shell.
内容概要:本文详细介绍了一种基于Simulink的表贴式永磁同步电机(SPMSM)有限控制集模型预测电流控制(FCS-MPCC)仿真系统。通过构建PMSM数学模型、坐标变换、MPC控制器、SVPWM调制等模块,实现了对电机定子电流的高精度跟踪控制,具备快速动态响应低稳态误差的特点。文中提供了完整的仿真建模步骤、关键参数设置、核心MATLAB函数代码及仿真结果分析,涵盖转速、电流、转矩三相电流波形,验证了MPC控制策略在动态性能、稳态精度抗负载扰动方面的优越性,并提出了参数自整定、加权代价函数、模型预测转矩控制弱磁扩速等优化方向。; 适合人群:自动化、电气工程及其相关专业本科生、研究生,以及从事电机控制算法研究与仿真的工程技术人员;具备一定的电机原理、自动控制理论Simulink仿真基础者更佳; 使用场景及目标:①用于永磁同步电机模型预测控制的教学演示、课程设计或毕业设计项目;②作为电机先进控制算法(如MPC、MPTC)的仿真验证平台;③支撑科研中对控制性能优化(如动态响应、抗干扰能力)的研究需求; 阅读建议:建议读者结合Simulink环境动手搭建模型,深入理解各模块间的信号流向与控制逻辑,重点掌握预测模型构建、代价函数设计与开关状态选择机制,并可通过修改电机参数或控制策略进行拓展实验,以增强实践与创新能力。
根据原作 https://pan.quark.cn/s/23d6270309e5 的源码改编 湖北省黄石市2021年中考数学试卷所包含的知识点广泛涉及了中学数学的基础领域,涵盖了实数、科学记数法、分式方程、几何体的三视图、立体几何、概率统计以及代数方程等多个方面。 接下来将对每道试题所关联的知识点进行深入剖析:1. 实数与倒数的定义:该题目旨在检验学生对倒数概念的掌握程度,即一个数a的倒数表达为1/a,因此-7的倒数可表示为-1/7。 2. 科学记数法的运用:科学记数法是一种表示极大或极小数字的方法,其形式为a×10^n,其中1≤|a|<10,n为整数。 此题要求学生运用科学记数法表示一个天文单位的距离,将1.4960亿千米转换为1.4960×10^8千米。 3. 分式方程的求解方法:考察学生解决包含分母的方程的能力,题目要求找出满足方程3/(2x-1)=1的x值,需通过消除分母的方式转化为整式方程进行解答。 4. 三视图的辨认:该题目测试学生对于几何体三视图(主视图、左视图、俯视图)的认识,需要识别出具有两个相同视图而另一个不同的几何体。 5. 立体几何与表面积的计算:题目要求学生计算由直角三角形旋转形成的圆锥的表面积,要求学生对圆锥的底面积侧面积公式有所了解并加以运用。 6. 统计学的基础概念:题目涉及众数、平均数、极差中位数的定义,要求学生根据提供的数据信息选择恰当的统计量。 7. 方程的整数解求解:考察学生在实际问题中进行数学建模的能力,通过建立方程来计算在特定条件下帐篷的搭建方案数量。 8. 三角学的实际应用:题目通过在直角三角形中运用三角函数来求解特定线段的长度。 利用正弦定理求解AD的长度是解答该问题的关键。 9. 几何变换的应用:题目要求学生运用三角板的旋转来求解特定点的...
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值