ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Dan
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 17
    • Best 0
    • Controversial 0
    • Groups 0

    Dan

    @Dan

    0
    Reputation
    7
    Profile views
    17
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Dan Unfollow Follow

    Latest posts made by Dan

    • RE: Is it possible to use uORB directly in a voxl module?

      @Chad-Sweet

      Thanks Chad.👍

      posted in VOXL 2
      D
      Dan
    • RE: Is it possible to use uORB directly in a voxl module?

      @Matt-Turi

      Apologies. Final question for now. Who is the producer of the mavlink message for the barometer data?

      posted in VOXL 2
      D
      Dan
    • RE: Is it possible to use uORB directly in a voxl module?

      @Eric-Katzfey

      No problem. I was wondering if I could do that bridging myself by subscribing to the uORB topic sensor_baro and then publishing onto a barometer MPA server but wasn't sure if it was possibly to subscribe to uORB topics in the voxl SDK.

      @Matt-Turi

      Thanks for the clarification. I'll take a look at the px4-listener parsing too.

      posted in VOXL 2
      D
      Dan
    • RE: Is it possible to use uORB directly in a voxl module?

      @Matt-Turi

      Hi Matt,

      Thanks for the quick reply and thanks for the example that's super useful.

      Just to clarify what you're saying. From my understanding when I do uorb top the topic name sensor_baro is available and I can call px4-listener sensor_baro to get an update from what I believe to be a uorb message? Are you saying that there are mavlink messages also published that will give me the same information and I can use something similar to your example to then create a barometer MPA server?

      posted in VOXL 2
      D
      Dan
    • Is it possible to use uORB directly in a voxl module?

      Hi ModalAI devs,

      I'm wondering if it's possible to subscribe to a uORB topic in a voxl module. I want to subscribe to the barometer sensor and there isn't an MPA server for this.

      The reason I ask is that when using the voxl-cross docker container I'm unsure which dependency is required to install to get access to the uORB headers etc.

      Thanks,
      Dan

      posted in VOXL 2
      D
      Dan
    • RE: ModalAI uORB topic file handle location

      @Eric-Katzfey

      Thanks again Eric. Looks like that was the part I was missing. I'll take a look.

      posted in VOXL 2
      D
      Dan
    • RE: ModalAI uORB topic file handle location

      @Eric-Katzfey

      Please correct me if my understanding is wrong. I just want to catch you whilst our time zones overlap.

      I've just briefly looked through the code for MuORB and uORB. It seems that MuORB registers as a communicator with the uORB Manager and provides a bunch of callbacks that eventually invoke particular functions in the manager when the respective action happens (subscribe, callback, advertise, unsubscribe). I see process_remote_topic() calling orb_advertise() which ends up calling uORB::Utils::node_mkpath(nodepath, messageName) which in the implementation is:

      //-----------------------------------------------------------------------------
      //-----------------------------------------------------------------------------
      int uORB::Utils::node_mkpath(char *buf, const char *orbMsgName)
      {
      	unsigned len;
      
      	unsigned index = 0;
      
      	len = snprintf(buf, orb_maxpath, "/%s/%s%d", "obj", orbMsgName, index);
      
      	if (len >= orb_maxpath) {
      		return -ENAMETOOLONG;
      	}
      
      	return OK;
      }
      

      This path (notice the /obj) then goes into node_open() which should create a file descriptor using px4_open() with the name /obj/<topic_name><index>.

      Can you see point me to where I'm going wrong in my understanding as we've discussed before this directory doesn't exist on VOXL2.

      posted in VOXL 2
      D
      Dan
    • RE: ModalAI uORB topic file handle location

      @Eric-Katzfey

      I was actually. That's useful - Thanks!

      posted in VOXL 2
      D
      Dan
    • RE: ModalAI uORB topic file handle location

      @Eric-Katzfey

      OK great. Thanks Eric. I'll take a look and come back here if I have any further questions.

      posted in VOXL 2
      D
      Dan
    • RE: ModalAI uORB topic file handle location

      @Eric-Katzfey
      Re: ModalAI uORB topic file handle location

      Hi Eric. Thanks for getting back to me.

      Quite possibly this is a Nuttx thing. I can use the listener just fine however I'm interested to dive a bit deeper into how you ship this data comes across from the DSP and whether I can potentially access that data directly without using uORB. I know I can use uORB to subscribe and get a file descriptor but I thought I'd ask and see if there are alternatives.

      Is there documentation on ModalAI uORB implementation for the DSP?

      posted in VOXL 2
      D
      Dan