Giter Site home page Giter Site logo

Comments (6)

pavel-kirienko avatar pavel-kirienko commented on June 12, 2024

This demo takes some gross shortcuts with error handling, as is usually the case with demos. Please single step the application around this place to see what's happening:

https://github.com/UAVCAN/demos/blob/c4e5868d5f84c9badd27a775b332105c08aaadab/differential_pressure_sensor/src/register.c#L62-L67

from demos.

pepeRossRobotics avatar pepeRossRobotics commented on June 12, 2024

I added some print statement to see what is happening, and this is the output arond those lines:


Init register: /home/pi/temp/registry/uavcan.node.id
Making new register /home/pi/temp/registry/uavcan.node.id
  -> Result of the operation: -1
Node ID in the register: 65535
Init register: /home/pi/temp/registry/uavcan.node.description
Making new register /home/pi/temp/registry/uavcan.node.description
  -> Result of the operation: -1
Init register: /home/pi/temp/registry/udral.pnp.cookie
Making new register /home/pi/temp/registry/udral.pnp.cookie
  -> Result of the operation: -1
Making new register /home/pi/temp/registry/reg.udral.service.pitot
  -> Result of the operation: -1
Init register: /home/pi/temp/registry/uavcan.can.mtu
Making new register /home/pi/temp/registry/uavcan.can.mtu
  -> Result of the operation: -1


Te Result of the operation comes from mkdir(RegistryDirName, S_IRWXU | S_IRWXG | S_IRWXO); SO I assume that the code is failing to create the file.

Do you have any suggestions on how to address this?

from demos.

pavel-kirienko avatar pavel-kirienko commented on June 12, 2024

Check the errno

from demos.

pepeRossRobotics avatar pepeRossRobotics commented on June 12, 2024

It is working now, or it seems to, I will ontinue checkign tomorrow.
The change that I made was to modify the mkdir command from:

mkdir(RegistryDirName, S_IRWXU | S_IRWXG | S_IRWXO);

mkdir(RegistryDirName,S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)

from demos.

pavel-kirienko avatar pavel-kirienko commented on June 12, 2024

Ah, that makes sense. Can you please submit a pull request?

from demos.

pepeRossRobotics avatar pepeRossRobotics commented on June 12, 2024

will do

from demos.

Related Issues (7)

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.