陀螺仪结合Unity姿态孪生Demo演示 硬件使用:MPU6050,MPU9250。 MCU使用:ESP8266。 自备串口TTL读取工具。 固件选择:MicroPython&NodeMCU。 拷贝Assets\ESP8266Program中对应脚本到MCU内存中运行即可,连接串口后,串口收到消息时,打开Unity运行对应程序即可看到陀螺仪模块的姿态孪生(旋转角度会和陀螺仪保持一致)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.0 KiB

import sys
sys.path.pop(0)
from setuptools import setup
from codecs import open
from os import path
cwd = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(cwd, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="micropython-mpu9250",
py_modules=["mpu9250", "mpu6500", "ak8963"],
version="0.3.0",
description="MicroPython I2C driver for MPU9250 9-axis motion tracking device",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="accelerometer, gyro, magnetometer, micropython, i2c",
url="https://github.com/tuupola/micropython-mpu9250",
author="Mika Tuupola",
author_email="tuupola@appelsiini.net",
maintainer="Mika Tuupola",
maintainer_email="tuupola@appelsiini.net",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: Implementation :: MicroPython",
"License :: OSI Approved :: MIT License",
],
)