From 564692665219b8749fc7ec69698a7043fbbd7299 Mon Sep 17 00:00:00 2001 From: Joepieler Date: Fri, 16 Aug 2019 15:36:01 +0200 Subject: [PATCH 1/2] Update frame_types.hpp --- code/headers/frame_types.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/headers/frame_types.hpp b/code/headers/frame_types.hpp index 3149745..6b8445d 100644 --- a/code/headers/frame_types.hpp +++ b/code/headers/frame_types.hpp @@ -52,6 +52,7 @@ namespace r2d2 { END_EFFECTOR_CLAW, ROBOT_ARM, FLAME_DETECTION, + PLANT_HEALTH, // Don't touch EXTERNAL, @@ -479,6 +480,22 @@ namespace r2d2 { // state of the brake button bool brake; }; + + /** + * Struct that represent the state + * The health status of a plant. + * + * Manual_control wiki: + * https://github.com/Joepieler/Plant_Rescue_System + * + */ + R2D2_PACK_STRUCT + struct frame_plant_health_s { + // A value between 0% & 100% + uint8_t moisture_percentage; + }; + + /** From 7d2fb2ba9130a106f22fb8afd8d3f0c1f511f4e9 Mon Sep 17 00:00:00 2001 From: Joepieler Date: Fri, 16 Aug 2019 15:49:45 +0200 Subject: [PATCH 2/2] Update frame_types.hpp --- code/headers/frame_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/headers/frame_types.hpp b/code/headers/frame_types.hpp index 6b8445d..01ea2da 100644 --- a/code/headers/frame_types.hpp +++ b/code/headers/frame_types.hpp @@ -485,7 +485,7 @@ namespace r2d2 { * Struct that represent the state * The health status of a plant. * - * Manual_control wiki: + * Plant_rescue_system wiki: * https://github.com/Joepieler/Plant_Rescue_System * */