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

Adding support for external Magnetometer on MATEKF722 #4909

Merged
merged 1 commit into from Jan 9, 2018

Conversation

bencrundwell
Copy link
Contributor

No description provided.

@bencrundwell
Copy link
Contributor Author

"Failed to connect to github.com port 443: Connection timed out" sounds like an internet connectivity issue rather than a bug. How can I kick Travis off to rebuild/test this branch?

@jflyper
Copy link
Contributor

jflyper commented Jan 7, 2018

You may be able to restart a build if you link your Travis account to that of Github. (I'm not sure. May need a special permission like member.)

@jflyper
Copy link
Contributor

jflyper commented Jan 7, 2018

If you can't do it, I'll kick it.

@bencrundwell
Copy link
Contributor Author

bencrundwell commented Jan 7, 2018

I don't see any betaflight/betaflight repos in my Travis account, so I'm guessing I don't have enough permissions. If you could kick it it would be much appreciated. It feels ugly re committing with just a space added somewhere to the source!

@@ -73,6 +73,10 @@
#define USE_BARO_MS5611
#define USE_BARO_BMP085

//*********** Magnetometer / Compass *************
#define MAG
Copy link
Member

Choose a reason for hiding this comment

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

This has to be USE_MAG. Please test your proposed changes before you open a pull request.

@bencrundwell
Copy link
Contributor Author

Sorry, I'm not sure how that happened. I had tested my changes and verified it was all working, but somehow in preparing the patch i must have accidentally selected and deleted the USE_ part. Sorry for the mistake

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

All good, mistakes happen.

Now, can you please rebase and squash this into one commit, with a indicative commit message please? 'Update target.h' isn't very helpful as a commit message once it's merged into master.

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

@bencrundwell: Looks like the rebase did not quite work as intended. To rebase / squash the commits in your branch / pull request into one with git on the command line you proceed as follows:

  • in your branch, do a git rebase -i master;
  • in the editor that opens, select pick for the first of your commits, squash for the rest of your commits, save & close (make sure the commit that you've selected pick for has got a message indicative of what the pull request is doing; you can edit the message if needed);
  • push your changes with `git push --force-with-lease;
  • done. :-)

@bencrundwell
Copy link
Contributor Author

Sorry, I messed up :(

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

Nothing lost. Use the instructions above for the rebase, and select drop for all the commits that aren't yours.

@bencrundwell
Copy link
Contributor Author

@mikeller Is that better? It appears to be a single commit now, but there is a Merge afterwards that I didn't intend to create

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

@bencrundwell: There's still a lot of commits in there that are not yours. Try git rebase -i master again, and use d (drop) on all of the commits that aren't yours.

@bencrundwell
Copy link
Contributor Author

I don't quite understand whats wrong. My git client shows there are now only my changes between betaflight/betaflight and bencrundwell/betaflight so it should merge in neatly. But the pull request suggests there are +10,002 new lines from 207 files

@bencrundwell
Copy link
Contributor Author

I've cloned a fresh repo and tried the git rebase -i master, but its not coming up with anything, just noop. I can try rebasing to where I originally branched away, but I don't know if that will make it worse!

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

Ok, getting there. Now you've got some of your changes twice. And it still needs to be squashed. :-D

@bencrundwell
Copy link
Contributor Author

Sorry for all the mess, Its finally all rebased correctly! Thanks for your help @mikeller

@mikeller
Copy link
Member

mikeller commented Jan 9, 2018

You're welcome, @bencrundwell. git / GitHub have a sometimes steep learning curve, happy to help you get started. Thank you very much for your contribution!

@mikeller mikeller merged commit 68333cb into betaflight:master Jan 9, 2018
mikeller added a commit that referenced this pull request Jan 9, 2018
Adding support for external Magnetometer on MATEKF722
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

3 participants