Skip to content

Conversation

@kaeladair
Copy link

  • Added environment variables for PX4 metadata and board configuration.
  • Created a metadata directory with appropriate permissions during the build process.

- Added environment variables for PX4 metadata and board configuration.
- Created a metadata directory with appropriate permissions during the build process.
@kaeladair
Copy link
Author

@JonasVautherin @julianoes MAVSDK Events interface wasn't able to fetch metadata from my SITL setup when using this, these changes fixed it on my end

Comment on lines +76 to +79
RUN mkdir -p ${FIRMWARE_DIR}/build/px4_sitl_default/component_metadata && \
chmod -R 777 ${FIRMWARE_DIR}/build/px4_sitl_default/component_metadata && \
cd ${FIRMWARE_DIR} && \
DONT_RUN=1 PX4_METADATA=1 CONFIG_BOARD_CONSTRAINED_FLASH=n make px4_sitl_default
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to run that after the RUN of line 69? Or could we merge both RUNs?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably merge them

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind trying? That would simplify the code 😊

@julianoes
Copy link
Collaborator

julianoes commented May 23, 2025

I tried to test this and for me it works fine without these changes, just by building from master.

Edit: I also tried latest like this docker run --rm -it jonasvautherin/px4-gazebo-headless:latest and that just worked as well.

@kaeladair
Copy link
Author

Hm yeah I found the same to be true, don't think this is needed, just trying to figure out why the one before the latest doesn't work

@JonasVautherin
Copy link
Owner

Oh even better! So we can close this?

@kaeladair kaeladair closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants