Code Monkey home page Code Monkey logo

Comments (3)

jb455 avatar jb455 commented on June 17, 2024

I just realised both of these functions are missing from VzenseNebula_api.h too. If I open Nebula_api.dll in a dependency walker app I can see VZ_SetSpatialFilterParams is exported from the native library, however VZ_SetTimeFilterEnabled is still nowhere to be found.

from nebulasdk.

jb455 avatar jb455 commented on June 17, 2024

Further, the struct VzSpatialFilterParams is partially documented in the user guide but not in VzenseNebula_types.h. What are the data types of all the members please? If I know this I can import the native dll and add in a VZ_SetSpatialFilterParams method for my own use in my C# app.
Thanks

from nebulasdk.

jb455 avatar jb455 commented on June 17, 2024

I see now that it appears the documentation is perhaps out of date.
There are no parameters to set for the spatial filter so VZ_SetSpatialFilterParams is not needed, and whether the time filter is enabled is set in VN_SetTimeFilterParams so VZ_SetTimeFilterEnabled is not needed.

Some usage examples in case it's helpful to anyone:

public void SetSpatialFilterEnabled(bool value)
{
    var status = api.VN_SetSpatialFilterEnabled(deviceHandle, (byte)(value ? 1 : 0));
    if (status != VzReturnStatus.VzRetOK)
    {
        RaiseError("SetSpatialFilterEnabled", "VN_SetSpatialFilterEnabled failed", status);
    }
}

public void SetTimeFilter(bool enabled, int threshold)
{
    VzTimeFilterParams filterParams = new VzTimeFilterParams { enable = (byte)(enabled ? 1 : 0), threshold = threshold };
    var status = api.VN_SetTimeFilterParams(deviceHandle, filterParams);
    if (status != VzReturnStatus.VzRetOK)
    {
        RaiseError("SetTimeFilter", "VN_SetTimeFilterParams failed", status);
    }
}

I will close this issue but request that you please update/clarify the documentation.
Thanks.

from nebulasdk.

Related Issues (12)

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.