-
Notifications
You must be signed in to change notification settings - Fork 1
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
Partage de code entre Arduino et Processing #2
Open
greut
wants to merge
6
commits into
master
Choose a base branch
from
swig
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
greut
force-pushed
the
swig
branch
9 times, most recently
from
December 2, 2016 13:07
6ddb7d8
to
6a15341
Compare
* ajout d'une direction de compilation DEBUG * variations autour du logging * nettoyage des PI existants en M_PI * renommage de log en logging pour ne pas écraser <math.h> Signed-off-by: Yoan Blanc <[email protected]>
SWIG permet de créer un jar (JNI) afin d'obtenir les valeurs en Processing telles que l'Arduino. Signed-off-by: Yoan Blanc <[email protected]>
greut
changed the title
Partage de code entre Arduino et Processing
Partage de code entre Arduino et Processing (en cours)
Dec 2, 2016
Appel du Java depuis C++. 😉
C'est encore une grosse bidouille. |
greut
changed the title
Partage de code entre Arduino et Processing (en cours)
Partage de code entre Arduino et Processing
Dec 4, 2016
@grunenwald L'étoile de gauche utilise le code C++ celle de droite celui en Processing. La magie se trouve dans Pour finaliser le truc, il faut:
|
À présent, Processing peut utiliser les mêmes déclarations que celle utilisées par l'Arduino. Signed-off-by: Yoan Blanc <[email protected]>
* Suppression de Dessin.java qui est inutile. Signed-off-by: Yoan Blanc <[email protected]>
greut
commented
Dec 5, 2016
xold=xmm; yold=ymm; | ||
xmm=x*zoom; ymm=y*zoom; | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grunenwald la magie est là.
shared.etoile(...); --> shared.so#etoile --> CallerJNI.java --> Callback.toAngle
Signed-off-by: Yoan Blanc <[email protected]>
Toutes, non, mire et dessine_liste sont soit liés à la physique du robot (taille des bras), soit à des données externes, e.g. liste.h Signed-off-by: Yoan Blanc <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partage de code entre les parties C++ et Java.
Bien évidemment avoir du code C++ qui est un mélange de dessin et de calculs n'est pas viable.
En utilisant ArduinoSTL,
std::vector
etstd::pair
.Sans ArduinoSTL.