Giter Club home page Giter Club logo

Comments (3)

Doing-code avatar Doing-code commented on June 6, 2024
onRecord: GPS has not ready, can't start record

如果没有GPX文件,会出现如上错误,一定要事先准备.GPX,才能启动开始按钮吗 ?

from x-track.

FASTSHIFT avatar FASTSHIFT commented on June 6, 2024

代码路径:X-Track\Simulator\LVGL.Simulator\HAL\HAL_GPS.cpp

static bool Parser_Init(GPX_Parser* parser, FileInfo_t* info) {
...
    lv_fs_res_t res = lv_fs_open(&info->file, CONFIG_TRACK_VIRTUAL_GPX_FILE_PATH, LV_FS_MODE_RD);
...
}

如果是第一次骑行,如何准备GPX文件?如果去GPX没有覆盖的地方,程序还会正常记录速度、耗时等数据信息吗?

如果第一次没有GPX文件,运动记录操作跑不起来,这种情况如何解决??一定要实现准备GPX吗?

这个是PC模拟器的逻辑。因为PC上没有真实的GPS设备来产生坐标数据,所以通过回放GPX文件的方式来模拟GPS数据。
在真实设备上,GPS数据取自GPS模块,见代码文件HAL_GPS.cpp,不需要准备GPX文件。

from x-track.

FASTSHIFT avatar FASTSHIFT commented on June 6, 2024
onRecord: GPS has not ready, can't start record

如果没有GPX文件,会出现如上错误,一定要事先准备.GPX,才能启动开始按钮吗 ?

这个报错的含义是,要求GPS要先定位上(有坐标数据产生),才能开始进行轨迹记录,轨迹记录器不关心实际的GPS数据源。PC模拟器需要导入GPX文件才能产生GPS数据,在真实设备上是GPS连接成功就能产生GPS数据。

from x-track.

Related Issues (20)

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.