Giter Site home page Giter Site logo

Comments (7)

klonyyy avatar klonyyy commented on May 8, 2024 1

It should be possible to just use the object instance name, without specyfing template parameters - have you tried that? A simplified example that I could try would be helpful as well.

from stmviewer.

klonyyy avatar klonyyy commented on May 8, 2024 1

I mean if you have an object instance for example GFSM<Devices<ESC_FOC_01, Config, Mcu::Stm::Stm32G431> > test; you should be able to use test.mDebug.

from stmviewer.

klonyyy avatar klonyyy commented on May 8, 2024 1

I think I was able to reproduce it, thanks. For now it its not possible, however I will look for an easy solution if there is one. If you want to quickly show some data, you can consider copying it's value to a global variable. I'm aware its ugly but maybe this is something that will make your work faster.

from stmviewer.

klonyyy avatar klonyyy commented on May 8, 2024 1

This might be also helpful. Basically use gdb's autocomplete (so that you get all the types right) and then copy and paste the full name. Just tried it and it works fine:
image

BTW: I'll be working on a window that lists all variables and lets you pick the ones you want, but this is not a simple and quick task ;)

from stmviewer.

wimalopaan avatar wimalopaan commented on May 8, 2024

In the above example GFSM<Devices<ESC_FOC_01, Config, Mcu::Stm::Stm32G431> > is the instantiated template and mDebug is a static member inside of that template-class. Do you mean, the name mDebug will suffice?

from stmviewer.

wimalopaan avatar wimalopaan commented on May 8, 2024

I mean if you have an object instance for example GFSM<Devices<ESC_FOC_01, Config, Mcu::Stm::Stm32G431> > test; you should be able to use test.mDebug.

Ok, now I understand.
No, there is no instance of that template-class: all its members are static.

Would it be passible to get a drop-down-list of all objects with static storage for the menu from the .elf-file using de-mangled names? This would be very helpful. If you need an example, I will provide one.

from stmviewer.

wimalopaan avatar wimalopaan commented on May 8, 2024

Well, that would be possible, but I think, I stick to the way copying the name from the .elf file.

Maybe another way would be to generate the STMViewer-config-file via some script parsing the .elf.

from stmviewer.

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.