Implemented report pins status.

This commit is contained in:
2023-05-06 00:19:57 +03:00
parent 414344faaf
commit 4556ddb746
4 changed files with 123 additions and 10 deletions
+13 -1
View File
@@ -38,7 +38,19 @@ struct realtime_status_report {
float feed_rate = 0;
float programmed_rpm = 0;
float actual_rpm = 0;
std::string signals;
union {
struct {
bool x_limit : 1;
bool y_limit : 1;
bool z_limit : 1;
bool probe : 1;
bool door : 1;
bool hold : 1;
bool soft_reset : 1;
bool cycle_start : 1;
} bit;
uint8_t value = 0;
} signals;
float axis_offsets[3] = {0};
std::string coordinate_system;
std::string overrides;