libcreate
libcreate copied to clipboard
Cliff Sensor Signals
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);