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

[DO NOT MERGE] Nxphlite temporary fixes #9504

Closed
wants to merge 3 commits into from

Conversation

DanielePettenuzzo
Copy link
Contributor

@DanielePettenuzzo DanielePettenuzzo commented May 22, 2018

DO NOT MERGE!

Hack to fix mag and dataman issue on nxphlite. First of all the hmc5883 driver was not started in the rc.sensors. Second, this mag is on an I2C bus that is defined as internal in the board config. With this modification it will be forced to be set as external.

Dataman works if started at the end of the rCS. Further investigation is required to understand what is the cause of this. This fix allows to upload/download missions from sd card.

@dagar
Copy link
Member

dagar commented May 22, 2018

I realize this is just a testing PR, but for some background dataman needs to be running before command and mavlink to reinit an existing mission.

@dagar dagar changed the title Nxphlite temporary fixes [DO NOT MERGE] Nxphlite temporary fixes May 22, 2018
@@ -989,7 +989,7 @@ HMC5883::collect()
sensor_is_onboard = !_interface->ioctl(MAGIOCGEXTERNAL, dummy);
new_report.is_external = !sensor_is_onboard;

#ifdef PX4_I2C_BUS_ONBOARD_EXP
#ifdef CONFIG_ARCH_BOARD_NXPHLITE_V3
Copy link
Member

@davids5 davids5 Jun 21, 2018

Choose a reason for hiding this comment

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

@DanielePettenuzzo I know this is a DNM HACK but just for the record we alway avoid any CONFIG_ARCH_BOARD_xxxx in common code. The thinking is name it as a feature and if def on that. See

@davids5
Copy link
Member

davids5 commented Jun 21, 2018

This should all be fixed in #9392

@davids5 davids5 closed this Jun 21, 2018
@LorenzMeier LorenzMeier deleted the nxphlite-temp-fixes branch January 21, 2019 10:48
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