Open klaki892 opened 7 years ago
http://pycreate2.readthedocs.io/en/latest/pyCreate2.robot.html shows a library that drives ultrasonic distance sensors from the Odroid with python, but requires some modification to use the sensors you have. Your sensors have separate trigger and return pins, while the sensors in this library share a pin. The source http://pycreate2.readthedocs.io/en/latest/_modules/pyCreate2/robot/sonar.html#Sonar shows how that function works, and modifying it to have a separate gpio for transmit and receive should be trivial.
This task involves processing the raw readings from our ultrasonic sensors so that decision making can be made from these readings later on.
A ROS Node will be needed for this task, where the Node will take data input (messages) containing the data and returning/sending a message indicating the distance the quadcopter is from whatever object the sensor just received input from.
Sample input would need to be used for testing until Issue #5 is completed.