Commit 4168e4c7 authored by Jacques Labaisse's avatar Jacques Labaisse
Browse files

create master branch

parent 4733941e
......@@ -34,6 +34,7 @@
float32_t v_ref = 10.0F;
float32_t v_send = 0.0F;
void main(void)
{
......
......@@ -37,6 +37,7 @@ LOG_MODULE_REGISTER(ext_can, CONFIG_CAN_LOG_LEVEL);
extern ThingSet ts;
extern uint16_t can_node_addr;
static const struct device *can_dev = DEVICE_DT_GET(DT_NODELABEL(can1));
#ifdef CONFIG_ISOTP
......
......@@ -45,6 +45,7 @@ float32_t vhigh_out = 0;
float32_t ihigh_out = 0;
extern float32_t v_ref;
extern float32_t v_send;
static float32_t load_dim = 1.0;
bool loadEnable = true;
......@@ -168,6 +169,7 @@ static DataNode data_nodes[] = {
TS_NODE_FLOAT(0x75, "vhigh_V", &vhigh_out, 2 ,
ID_OUTPUT, TS_ANY_R, PUB_SER | PUB_CAN),
/*{
"title": {
"en": "ihigh"
......@@ -205,6 +207,15 @@ static DataNode data_nodes[] = {
TS_NODE_FLOAT(0x8003, "voltage_reference", &v_ref, 2 ,
ID_OUTPUT, TS_ANY_RW, PUB_SER | PUBSUB_CTRL),
/*{
"title": {
"en": "voltage_to_send"
},
"unit": "mV"
}*/
TS_NODE_FLOAT(0x8004, "v_send", &v_send, 2 ,
ID_OUTPUT, TS_ANY_R, PUB_SER | PUB_CAN),
// PUBLICATION DATA ///////////////////////////////////////////////////////
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment