Skip to content

Instantly share code, notes, and snippets.

@dimik
Last active October 3, 2018 14:26
Show Gist options
  • Save dimik/60bafc1e864846f6608e9815f6e5f45f to your computer and use it in GitHub Desktop.
Save dimik/60bafc1e864846f6608e9815f6e5f45f to your computer and use it in GitHub Desktop.
Paparazz UAV Installition Mac Osx
brew cask install xquartz
brew cask install gcc-arm-embedded
brew install gnutls gtk+ wget dfu-util gsl coreutils gnu-sed libglade libgnomecanvas sdl libusb libusb-compat
brew tap paparazzi/homebrew-paparazzi
brew install jsbsim
brew install opam
opam init
opam switch install 4.01.0
opam pin add paparazzi-dev https://github.com/paparazzi/paparazzi-portability-support.git
[YES]
git clone https://github.com/flixr/ivy-c.git
change tools/ivythroughput.cpp
s/string/std::string/g
~/ivy-c (master *) $ git di -U0
diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp
index 6773892..3e1a840 100644
--- a/tools/ivythroughput.cpp
+++ b/tools/ivythroughput.cpp
@@ -65 +65 @@ typedef struct {
-typedef std::map<string, InfoBind> MapBindByClnt;
+typedef std::map<std::string, InfoBind> MapBindByClnt;
@@ -302 +302 @@ void recepteur_tp (const char* bus, KindOfTest kod, unsigned int inst,
- string reg = *iter;
+ std::string reg = *iter;
@@ -340 +340 @@ void recepteur_ml (const char* bus, KindOfTest kod, unsigned int inst,
- string reg = *iter;
+ std::string reg = *iter;
@@ -376 +376 @@ bool getMessages (const char*fileName, ListOfString &messages, unsigned int numM
- string aMsg;
+ std::string aMsg;
@@ -409 +409 @@ bool getRegexps (const char*fileName, ListOfString &regexps, unsigned int numReg
- string aMsg;
+ std::string aMsg;
@@ -462 +462 @@ void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyB
- string appName = IvyGetApplicationName( app );
+ std::string appName = IvyGetApplicationName( app );
@@ -499 +499 @@ void congestCB ( IvyClientPtr app, void *user_data, IvyApplicationEvent event )
- string appName = IvyGetApplicationName( app );
+ std::string appName = IvyGetApplicationName( app );
@@ -621 +621 @@ void desabonneEtReabonneCB (TimerId id, void *user_data, unsigned long delta)
- string reg = *iter2;
+ std::string reg = *iter2;
cd src
make -f Makefile.osx
sudo make -f Makefile.osx install
opam pin ivy 1.2.2
opam pin ivy 1.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment