libcreate icon indicating copy to clipboard operation
libcreate copied to clipboard

Cliff Sensor Signals

Open seb1220 opened this issue 2 years ago • 0 comments

Could you add getter functions for the cliffSensorsSignals additionally to the isCliff getters? This would be extremely useful for tasks like line following.

You would have to add these lines in data.cpp and then implement the corresponding getters in create.cpp

ADD_PACKET(ID_CLIFF_LEFT_SIGNAL, 2, "cliff_left_signal", V_3);
ADD_PACKET(ID_CLIFF_FRONT_LEFT_SIGNAL, 2, "cliff_front_left_signal", V_3);
ADD_PACKET(ID_CLIFF_FRONT_RIGHT_SIGNAL, 2, "cliff_front_right_signal", V_3);
ADD_PACKET(ID_CLIFF_RIGHT_SIGNAL, 2, "cliff_right_signal", V_3);

seb1220 avatar Mar 12 '23 04:03 seb1220