欢迎来到 VEX V5 的 API 参考网站#

探索使用 VEXcode V5 进行编程所需的一切,包括 Blocks、Python 和 C++。本指南将帮助您浏览网站并充分利用现有资源。

此 API 信息适用于以下任一情况:

API 部分#

如何使用 API 参考#

  1. 选择您的语言:决定是否要在您的项目中使用 Blocks、Python 还是 C++。

    • For Blocks, navigate to the Blocks page.

    • For Python, navigate to the Python page.

    • For C++. navigate to the C++ page.

  2. 浏览或搜索:使用导航菜单或搜索栏来定位特定的命令或块。

  3. 阅读说明:每个 API 函数都包含一个说明,解释其目的、参数和任何重要说明。

  4. Review the Examples: For commands that include examples, try them out with your own robot to see how they behave! For text-based examples in Python or C++, select the Copy button to copy the example to your clipboard and so it can be pasted into your coding environment.

  5. Experiment and Modify: Try out the command in your projects. Modify its parameters to fit your needs and observe the effects.

成功秘诀#

  • 从简单开始:从基础项目开始熟悉 VEXcode。

  • 阅读 API 参考:探索 API 参考以了解可用的功能及其操作。

  • 定期练习:您编写的代码越多,您对平台的熟练程度就会越高。

编码愉快,欢迎使用 VEXcode V5!