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

NFC: Reboot required #6231

Merged
merged 3 commits into from
May 27, 2017
Merged

NFC: Reboot required #6231

merged 3 commits into from
May 27, 2017

Conversation

amilcarlucas
Copy link
Contributor

I'm not 100% sure about this, .... but I think these are missing.

@OXINARF
Copy link
Member

OXINARF commented May 14, 2017

The EKF one is wrong and SerialManager isn't necessarily true. Others look correct to me, but need to be confirmed.

@rmackay9
Copy link
Contributor

I've pulled in the Copter and Proximity fixes to master. Normally we don't pull in parts of PRs but they look correct and I needed something to kick off the AC3.5 release so I thought perhaps two birds with one stone.

@@ -123,6 +123,7 @@ const AP_Param::GroupInfo NavEKF2::var_info[] = {
// @Description: This enables EKF2. Enabling EKF2 only makes the maths run, it does not mean it will be used for flight control. To use it for flight control set AHRS_EKF_TYPE=2. A reboot or restart will need to be performed after changing the value of EK2_ENABLE for it to take effect.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why is this one wrong ? The description explicitly tells it

Copy link
Member

Choose a reason for hiding this comment

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

A reboot isn't needed when enabling, just if disabling.

Copy link
Contributor Author

@amilcarlucas amilcarlucas May 16, 2017

Choose a reason for hiding this comment

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

Is it not better to always warn the user ? When they change something and it does not work, it's confusing. Some people might not come to the idea that they need a reboot, and simply try to find other parameters to change, or get frustrated. If a reset is needed in some situations just warn all the time. This way it will work all the time and not only in some situations. BTW where is it documented that this requires reboot when disabling and not on enabling ? And for other parameters ? Where are the docs ? will the users find them? will they even search for it ?

I vote that is better to request a reset more than a reset less. :)

@amilcarlucas
Copy link
Contributor Author

If I change serial 4 to GPS, the second GPS does not start until I reboot.
Did I found a bug ? Or does it require a reboot ?

@OXINARF
Copy link
Member

OXINARF commented May 16, 2017

@amilcarlucas It depends on the library using the serial ports. You can for example enable MAVLink2 without rebooting. As I said, it might happen for some cases, but is not necessarily true that a reboot is needed.

@lvale
Copy link
Member

lvale commented May 16, 2017

If it requires a reboot on different cases, then just add the warning and always require rebooting

@amilcarlucas
Copy link
Contributor Author

Regarding the serial ports, I got a lot of trouble in the begining of using ardupilot, because I did some serial changes and it did not ask me to reset. For other stuff it asked me for a reset. For serial it did not asked and I assumed it was not needed. BIG mistake. That took me some time to figure out.

Here I'm trying to save other people from committing the same errors I did in the past.

@OXINARF
Copy link
Member

OXINARF commented May 17, 2017

@amilcarlucas This doesn't ask you anything, it's just a documentation tag. In my opinion it shouldn't have a reboot required tag unless it is always and absolutely needed, but take it to the dev call and you'll get others' opinion, then it's decided the way forward.

@peterbarker
Copy link
Contributor

peterbarker commented May 17, 2017 via email

@lvale
Copy link
Member

lvale commented May 17, 2017

ok, so best solution would be not to be necessary to ever reboot after changing parameters, next best solution would be Peter's suggestion on the AP_Arming, third best solution is the current documentation improvement. As we don't have the first two let's go with the third. I share the "pain" with @amilcarlucas and many other users that actually use ArduPilot on the field and not on a desk, so let's make life easy to the normal users.

@amilcarlucas amilcarlucas changed the title Reboot required NFC: Reboot required May 26, 2017
@amilcarlucas
Copy link
Contributor Author

Can someone merge this ? It has already been discussed and accepted at the team meeting.

@OXINARF
Copy link
Member

OXINARF commented May 26, 2017

@amilcarlucas Can you please rebase and remove the ones that Randy already cherry-picked?

@magicrub
Copy link
Contributor

a rebase should auto-remove them

@amilcarlucas
Copy link
Contributor Author

Rebase done, as requested

@OXINARF OXINARF merged commit bf4a505 into ArduPilot:master May 27, 2017
@OXINARF
Copy link
Member

OXINARF commented May 27, 2017

Merged, thanks!

@amilcarlucas amilcarlucas deleted the reboot-required branch July 18, 2017 18:13
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.

None yet

6 participants