Skip to content

Commit b7abb94

Browse files
committed
update behavior
1 parent fef1677 commit b7abb94

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/behaviortree_cpp_v3/config.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ namespace BT {
7474
#ifdef Ivy
7575
switch (index) {
7676
case temp:
77-
value = Prop::get<double>(Prop::temperature);
77+
value = Prop::get<int>(Prop::temperature);
7878
break;
7979
case humidity:
80-
value = Prop::get<double>(Prop::humidity);
80+
value = Prop::get<int>(Prop::humidity);
8181
break;
8282
case light:
83-
value = Prop::get<double>(Prop::ambient_light);
83+
value = Prop::get<int>(Prop::ambient_light);
8484
break;
8585
case water_level:
86-
value = Prop::get<double>(Prop::water_level);
86+
value = Prop::get<int>(Prop::water_level);
8787
break;
8888
case battery:
89-
value = Prop::get<double>(Prop::battery_percent);
89+
value = Prop::get<int>(Prop::battery_percent);
9090
break;
9191
case soil_moisture:
92-
value = Prop::get<double>(Prop::soil_moisture);
92+
value = Prop::get<int>(Prop::soil_moisture);
9393
break;
9494
case current_hour:
9595
value = Sys::get_hour();

include/behaviortree_cpp_v3/decorators/DecoratorEvent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace BT {
2020
}
2121

2222
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)};
2424
}
2525

2626
NodeStatus tick() override;

0 commit comments

Comments
 (0)