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

- [ardrone] added daren's mag freeze fix #767

Merged
merged 3 commits into from
Jul 7, 2014

Conversation

x75
Copy link
Contributor

@x75 x75 commented Jul 2, 2014

finally managed to put that piece here. please check. thx

system("gpio 177 -d lo 0 &"); // GPIO used to reset PIC
system("gpio 177 -d lo 1 &");
// wait 20ms to retrieve data
for (int i=0;i<22;i++)
Copy link
Member

Choose a reason for hiding this comment

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

why making a for loop instead of a usleep of the correct time directly ?

gautierhattenberger added a commit that referenced this pull request Jul 7, 2014
[ardrone] added daren's mag freeze fix
@gautierhattenberger gautierhattenberger merged commit eca8daf into paparazzi:master Jul 7, 2014
navdata_write(&cmd, 1);

// do the navboard reset via GPIOs
system("gpio 177 -d lo 0 &"); // GPIO used to reset PIC
Copy link
Member

Choose a reason for hiding this comment

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

why system instead of gpio_clear and gpio_set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i wasn't aware of those functions. will check.

@gautierhattenberger
Copy link
Member

fixed with 3bc524b

@flixr flixr added this to the v5.2 milestone Jul 26, 2014
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.

None yet

3 participants