File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
include/behaviortree_cpp_v3 Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -74,22 +74,22 @@ namespace BT {
74
74
#ifdef Ivy
75
75
switch (index) {
76
76
case temp:
77
- value = Prop::get<double >(Prop::temperature);
77
+ value = Prop::get<int >(Prop::temperature);
78
78
break ;
79
79
case humidity:
80
- value = Prop::get<double >(Prop::humidity);
80
+ value = Prop::get<int >(Prop::humidity);
81
81
break ;
82
82
case light:
83
- value = Prop::get<double >(Prop::ambient_light);
83
+ value = Prop::get<int >(Prop::ambient_light);
84
84
break ;
85
85
case water_level:
86
- value = Prop::get<double >(Prop::water_level);
86
+ value = Prop::get<int >(Prop::water_level);
87
87
break ;
88
88
case battery:
89
- value = Prop::get<double >(Prop::battery_percent);
89
+ value = Prop::get<int >(Prop::battery_percent);
90
90
break ;
91
91
case soil_moisture:
92
- value = Prop::get<double >(Prop::soil_moisture);
92
+ value = Prop::get<int >(Prop::soil_moisture);
93
93
break ;
94
94
case current_hour:
95
95
value = Sys::get_hour ();
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace BT {
20
20
}
21
21
22
22
static PortsList providedPorts () {
23
- return {InputPort<int >(DECORATOR_PRIORITY_NAME), InputPort<int >(DECORATOR_INDEX_NAME)};
23
+ return {InputPort<int >(DECORATOR_PRIORITY_NAME), InputPort<event_t >(DECORATOR_INDEX_NAME)};
24
24
}
25
25
26
26
NodeStatus tick () override ;
You can’t perform that action at this time.
0 commit comments