Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROMFS split rc.board into defaults, sensors, and extras #11044

Merged
merged 2 commits into from
Jan 16, 2019
Merged

Conversation

dagar
Copy link
Member

@dagar dagar commented Dec 14, 2018

To resolve a number of issues and enable further customization I've split the optional per board provided rc.board init script into rc.board_defaults, rc.board_sensors, and rc.board_extras.

rc.board_defaults

  • set default params and environment variables per board as soon as possible

rc.board_sensors

  • board sensors startup script executed before system wide rc.sensors and skipped entirely if HITL enabled

rc.board_extras

  • runs close to the end of startup for board specific things like custom mavlink or telemetry startup.

I'm sure there are other little problems in startup, let's take this as an opportunity to carefully review everything and identify other problems.

@dagar dagar requested review from bkueng and davids5 December 14, 2018 17:41
@dagar dagar changed the title ROMFS split rc.board into defaults, sensors, and extras [WIP] ROMFS split rc.board into defaults, sensors, and extras Dec 14, 2018
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Looks good, I did not see any other problems.

ROMFS/px4fmu_common/init.d/rcS Outdated Show resolved Hide resolved
boards/px4/fmu-v2/init/rc.board_extras Outdated Show resolved Hide resolved
boards/px4/fmu-v2/init/rc.board_extras Outdated Show resolved Hide resolved
boards/px4/fmu-v4/init/rc.board_defaults Show resolved Hide resolved
davids5
davids5 previously requested changes Jan 7, 2019
boards/px4/fmu-v4/init/rc.board_defaults Outdated Show resolved Hide resolved
@dagar
Copy link
Member Author

dagar commented Jan 11, 2019

Rebased on master and resolved conflicts. Need to do another pass to address all comments.

@dagar dagar dismissed davids5’s stale review January 13, 2019 15:49

Serial mapping removed entirely.

@dagar dagar changed the title [WIP] ROMFS split rc.board into defaults, sensors, and extras ROMFS split rc.board into defaults, sensors, and extras Jan 13, 2019
@dagar dagar requested a review from a team January 13, 2019 15:51
@dagar dagar added this to the Release v1.9.0 milestone Jan 13, 2019
@dagar dagar added the bug label Jan 13, 2019
@dagar dagar force-pushed the pr-init_fixes branch 2 times, most recently from 0042061 to 25c8beb Compare January 13, 2019 16:53
@dagar
Copy link
Member Author

dagar commented Jan 13, 2019

The default value for SYS_FMU_TASK is already 1, so updated the scripting to only set this to 0 for fmu-v2, v3 and auav-x21.

@dagar
Copy link
Member Author

dagar commented Jan 14, 2019

Good to go? If no one has a major objection I'd prefer to get this in immediately and follow up in additional issues/PRs. This is getting difficult to rebase.

@davids5
Copy link
Member

davids5 commented Jan 14, 2019

@dagar good from my pov

Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Looks good up to the unrelated change.

boards/px4/fmu-v3/init/rc.board_sensors Show resolved Hide resolved
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Good to merge.
Daniel, can you make sure the serial port docs get added soon in whatever way we decide to keep them?

@mhkabir mhkabir merged commit c319ea7 into master Jan 16, 2019
@mhkabir mhkabir deleted the pr-init_fixes branch January 16, 2019 07:53
@dagar
Copy link
Member Author

dagar commented Jan 16, 2019

PX4 user guide issue to follow up on serial port docs. PX4/PX4-user_guide#417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants