GithubHelp home page GithubHelp logo

excel2dbc's Issues

信号初始值的计算

  1. 第120行
    If Len(ActiveSheet.Cells(i, 10)) > 0 And Len(ActiveSheet.Cells(i, 1)) > 0 And ActiveSheet.Cells(i, 11) <> 0 Then
    仅每条Message的第一条Signal的Len(ActiveSheet.Cells(i, 1))会返回大于0,后续几条Signal返回均为0,导致后续Signal初始值计算出现问题。

  2. 信号的初始值存储时为原始值,根据 [Physical value] = ([raw value] * [factor]) + [offset]
    转变为 [raw value] = ([Physical value] - [offset]) / [factor]
    第121行: initial_value = (ActiveSheet.Cells(i, 10) + ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)
    是否应改为:initial_value = (ActiveSheet.Cells(i, 10) - ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)

信号初始值的计算

第121行:initial_value = (ActiveSheet.Cells(i, 10) + ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)

信号初始值不是直接指定的吗?为什么使用这种计算方式?

转为DBC后初始值发生了改变

你好,我今天试了下你Excel转DBC,发现一个问题,比如在Excel里填一个MSB、长度为8bit、起始位56,生成的DBC中Startbit变为65,然后报错。能解决一下吗?

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.