Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
6
Star
12
Fork
11
QuecPython
/
microPython
Code
Issues
0
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
11
[Lightweight PR]: update ports/quectel/core/gnss.py.
Closed
N/A
QuecPython:master
周陈博
create on 2021-11-29 19:36
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
当 read_gnss_data()在线程中被调用,如果延时时间低于1秒的话,会报错。 原因:由于此时串口的GPS模组还没有将数据上报,所以此时调用 read_gnss_data()会报错,错误信息 self.r1.group(0) group 不存在。 此处增加一个返回返回值,这样线程中调用的时候。使用的时候,可以不断去询问串口是否有数据发送。 例子: def GpsQueuePush(): gnss = GnssGetData(GPS_CONFIG['uartn'],GPS_CONFIG['baudrate'],GPS_CONFIG['databits'],GPS_CONFIG['parity'],GPS_CONFIG['stopbits'],GPS_CONFIG['flowctl']) while(1): utime.sleep_us(10) # 加个延时避免EC200U/EC600U运行重启 if gnss.read_gnss_data(): location = gnss.getLocation() gps_result.lng = '%.7f' % location[2] gps_result.lat = '%.7f' % location[0]
This pull request needs to pass some approval items
Type
Assign personnel
Status
Reviewer
QuecPython
In progress
(0/1 )
Tester
QuecPython
In progress
(0/1 )
How to merge Pull Request
git checkout master
git pull https://gitee.com/quecpython/microPython.git N/A
git push origin master
Comments
1
Commits
1
Files
1
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
QuecPython
quecpython_admin
No Setting
Min number
1
Tester
QuecPython
quecpython_admin
No Setting
Min number
1
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
No Setting
Link Issue
No link issue
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(2)
1
https://gitee.com/quecpython/microPython.git
git@gitee.com:quecpython/microPython.git
quecpython
microPython
microPython
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register