Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions code/headers/frame_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace r2d2 {
END_EFFECTOR_CLAW,
ROBOT_ARM,
FLAME_DETECTION,
PLANT_HEALTH,

// Don't touch
EXTERNAL,
Expand Down Expand Up @@ -479,6 +480,22 @@ namespace r2d2 {
// state of the brake button
bool brake;
};

/**
* Struct that represent the state
* The health status of a plant.
*
* Plant_rescue_system 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;
};




/**
Expand Down