Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jacques Labaisse
Core
Commits
f1d2f970
Commit
f1d2f970
authored
Sep 08, 2021
by
Jacques Labaisse
Browse files
create slave_converter branch (extern variables!)
parent
4168e4c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
f1d2f970
...
...
@@ -34,7 +34,7 @@
float32_t
v_ref
=
10.0
F
;
float32_t
v_
send
=
0.0
F
;
float32_t
v_
receive
=
0.0
F
;
void
main
(
void
)
{
...
...
zephyr/modules/owntech_can_api/zephyr/src/data_nodes.cpp
View file @
f1d2f970
...
...
@@ -45,7 +45,7 @@ float32_t vhigh_out = 0;
float32_t
ihigh_out
=
0
;
extern
float32_t
v_ref
;
extern
float32_t
v_
send
;
extern
float32_t
v_
receive
;
static
float32_t
load_dim
=
1.0
;
bool
loadEnable
=
true
;
...
...
@@ -209,12 +209,12 @@ static DataNode data_nodes[] = {
/*{
"title": {
"en": "voltage_to_
send
"
"en": "voltage_to_
receive
"
},
"unit": "mV"
}*/
TS_NODE_FLOAT
(
0x8004
,
"v_
send"
,
&
v_send
,
2
,
ID_OUTPUT
,
TS_ANY_
R
,
PUB_SER
|
PUB
_CAN
),
TS_NODE_FLOAT
(
0x8004
,
"v_
receive"
,
&
v_receive
,
2
,
ID_OUTPUT
,
TS_ANY_
W
,
PUB_SER
|
PUB
SUB_CTRL
),
...
...
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