Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
5074d111
Commit
5074d111
authored
Mar 11, 2018
by
Sascha Niklas Schneiders
Browse files
updated AutoPilotAdapter
parent
2d41cc27
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/template/autopilotadapter/AutopilotAdapter.ftl
View file @
5074d111
...
...
@@ -11,13 +11,13 @@
#
include
<stdlib.h>
#
include
<stdio.h>
#
include
<time.h>
#
include
"armadillo.h"
${
viewModel
.mainModelName
}
AUTOPILOT_INSTANCE;
void
copyJLongArrayToMatrix(JNIEnv
*
jenv, jlongArray &source,
M
at
rix
&dest)
{
void
copyJLongArrayToMatrix(JNIEnv
*
jenv, jlongArray &source,
m
at &dest)
{
jsize
len
=
jenv
->
G
etArrayLength
(
source
)
;
if
(
len
<=
0
)
{
return
;
...
...
@@ -29,7 +29,7 @@ void copyJLongArrayToMatrix(JNIEnv *jenv, jlongArray &source, Matrix &dest) {
jenv
->
R
eleaseLongArrayElements
(
source
,
body
,
0
)
;
}
void
copyJDoubleArrayToMatrix(JNIEnv
*
jenv, jdoubleArray &source,
M
at
rix
&dest)
{
void
copyJDoubleArrayToMatrix(JNIEnv
*
jenv, jdoubleArray &source,
m
at &dest)
{
jsize
len
=
jenv
->
G
etArrayLength
(
source
)
;
if
(
len
<=
0
)
{
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment