├── .gitignore
├── Documentation
├── html
│ ├── graph_legend.md5
│ ├── inherit_graph_0.md5
│ ├── class_distance_s_r_f04__coll__graph.md5
│ ├── class_distance_s_r_f04__inherit__graph.md5
│ ├── class_distance_sensor__coll__graph.md5
│ ├── class_distance_sensor__inherit__graph.md5
│ ├── class_analog_distance_sensor__coll__graph.md5
│ ├── class_distance_g_p2_y0_a21_y_k__coll__graph.md5
│ ├── class_distance_g_p2_y0_a41_s_k__coll__graph.md5
│ ├── dir_6dde59ad95b5166d5e65261f32edc45c_dep.md5
│ ├── class_analog_distance_sensor__inherit__graph.md5
│ ├── class_distance_g_p2_y0_a21_y_k__inherit__graph.md5
│ ├── class_distance_g_p2_y0_a41_s_k__inherit__graph.md5
│ ├── class_ultrasonic_distance_sensor__coll__graph.md5
│ ├── class_ultrasonic_distance_sensor__inherit__graph.md5
│ ├── class_distance_sensor__coll__graph.map
│ ├── bc_s.png
│ ├── bdwn.png
│ ├── closed.png
│ ├── ftv2cl.png
│ ├── ftv2mo.png
│ ├── ftv2ns.png
│ ├── nav_f.png
│ ├── nav_g.png
│ ├── nav_h.png
│ ├── open.png
│ ├── tab_a.png
│ ├── tab_b.png
│ ├── tab_h.png
│ ├── tab_s.png
│ ├── doxygen.png
│ ├── ftv2doc.png
│ ├── ftv2link.png
│ ├── ftv2node.png
│ ├── sync_off.png
│ ├── sync_on.png
│ ├── ftv2blank.png
│ ├── ftv2mnode.png
│ ├── ftv2pnode.png
│ ├── ftv2lastnode.png
│ ├── ftv2mlastnode.png
│ ├── ftv2plastnode.png
│ ├── ftv2splitbar.png
│ ├── ftv2vertline.png
│ ├── graph_legend.png
│ ├── search
│ │ ├── close.png
│ │ ├── all_6d.js
│ │ ├── mag_sel.png
│ │ ├── search_l.png
│ │ ├── search_m.png
│ │ ├── search_r.png
│ │ ├── pages_6d.js
│ │ ├── classes_61.js
│ │ ├── all_75.js
│ │ ├── classes_75.js
│ │ ├── pages_61.js
│ │ ├── functions_61.js
│ │ ├── all_69.js
│ │ ├── functions_69.js
│ │ ├── all_73.js
│ │ ├── functions_73.js
│ │ ├── all_61.js
│ │ ├── classes_64.js
│ │ ├── functions_64.js
│ │ ├── nomatches.html
│ │ ├── all_62.js
│ │ ├── functions_62.js
│ │ ├── all_64.js
│ │ ├── all_67.js
│ │ ├── functions_67.js
│ │ ├── all_61.html
│ │ ├── all_62.html
│ │ ├── all_64.html
│ │ ├── all_67.html
│ │ ├── all_69.html
│ │ ├── all_6d.html
│ │ ├── all_73.html
│ │ ├── all_75.html
│ │ ├── pages_61.html
│ │ ├── pages_6d.html
│ │ ├── classes_61.html
│ │ ├── classes_64.html
│ │ ├── classes_75.html
│ │ ├── functions_61.html
│ │ ├── functions_62.html
│ │ ├── functions_64.html
│ │ ├── functions_67.html
│ │ ├── functions_69.html
│ │ ├── functions_73.html
│ │ └── search.css
│ ├── ftv2folderclosed.png
│ ├── ftv2folderopen.png
│ ├── inherit_graph_0.png
│ ├── files.js
│ ├── class_distance_s_r_f04__coll__graph.png
│ ├── class_distance_sensor__coll__graph.png
│ ├── class_distance_s_r_f04__inherit__graph.png
│ ├── class_distance_sensor__inherit__graph.png
│ ├── class_analog_distance_sensor__coll__graph.png
│ ├── dir_6dde59ad95b5166d5e65261f32edc45c_dep.png
│ ├── class_distance_g_p2_y0_a21_y_k__coll__graph.png
│ ├── class_distance_g_p2_y0_a41_s_k__coll__graph.png
│ ├── class_analog_distance_sensor__inherit__graph.png
│ ├── class_distance_g_p2_y0_a21_y_k__inherit__graph.png
│ ├── class_distance_g_p2_y0_a41_s_k__inherit__graph.png
│ ├── class_ultrasonic_distance_sensor__coll__graph.png
│ ├── class_ultrasonic_distance_sensor__inherit__graph.png
│ ├── class_distance_s_r_f04.js
│ ├── class_analog_distance_sensor__coll__graph.map
│ ├── class_distance_g_p2_y0_a21_y_k.js
│ ├── class_distance_g_p2_y0_a41_s_k.js
│ ├── class_ultrasonic_distance_sensor__coll__graph.map
│ ├── class_distance_sensor.js
│ ├── dir_6dde59ad95b5166d5e65261f32edc45c_dep.map
│ ├── class_ultrasonic_distance_sensor__inherit__graph.map
│ ├── hierarchy.js
│ ├── class_distance_s_r_f04__coll__graph.map
│ ├── class_distance_s_r_f04__inherit__graph.map
│ ├── class_distance_g_p2_y0_a21_y_k__coll__graph.map
│ ├── class_distance_g_p2_y0_a41_s_k__coll__graph.map
│ ├── class_distance_g_p2_y0_a21_y_k__inherit__graph.map
│ ├── class_distance_g_p2_y0_a41_s_k__inherit__graph.map
│ ├── dir_6dde59ad95b5166d5e65261f32edc45c.js
│ ├── annotated.js
│ ├── class_analog_distance_sensor__inherit__graph.map
│ ├── class_analog_distance_sensor.js
│ ├── class_ultrasonic_distance_sensor.js
│ ├── inherit_graph_0.map
│ ├── class_distance_sensor__inherit__graph.map
│ ├── tabs.css
│ ├── dynsections.js
│ ├── navtree.css
│ ├── navtreeindex0.js
│ ├── resize.js
│ ├── index.html
│ ├── doxygeninfo_8h_source.html
│ ├── inherits.html
│ ├── class_distance_sensor-members.html
│ ├── classes.html
│ ├── annotated.html
│ ├── files.html
│ ├── hierarchy.html
│ ├── functions_func.html
│ ├── functions.html
│ ├── class_analog_distance_sensor-members.html
│ ├── dir_6dde59ad95b5166d5e65261f32edc45c.html
│ ├── class_ultrasonic_distance_sensor-members.html
│ └── class_distance_s_r_f04-members.html
├── latex
│ └── refman.pdf
├── TransferFunctions.ods
├── InheritanceDiagram-DistanceSensor.png
├── InheritanceDiagram-DistanceSensor_v2.png
└── datasheets
│ ├── Distance_Ultrasonic_srf04.pdf
│ ├── Distance_IR_Analog_Sharp_gp2y0a21yk.pdf
│ ├── Distance_IR_Analog_Sharp_gp2y0a41sk0f.pdf
│ └── Distance_IR_Analog_Sharp_gp2y0a21yk_new.pdf
├── DistanceSensor
├── resources
│ ├── lastbuild.log
│ ├── bcpp_indenter.cfg
│ └── errors.log
├── mainpage.dox
├── examples
│ ├── SRF04
│ │ └── Centimeter
│ │ │ └── Centimeter.ino
│ ├── GP2Y0A21YK
│ │ └── Centimeter
│ │ │ └── Centimeter.ino
│ ├── GP2Y0A41SK
│ │ └── Centimeter
│ │ │ └── Centimeter.ino
│ ├── CombinedSensor
│ │ └── Centimeter
│ │ │ └── Centimeter.ino
│ └── MultiSensor
│ │ └── Centimeter
│ │ └── Centimeter.ino
├── DistanceGP2Y0A21YK.h
├── DistanceGP2Y0A41SK.h
├── DistanceSRF04.h
├── DistanceSensor.cpp
├── UltrasonicDistanceSensor.h
├── DistanceGP2Y0A21YK.cpp
├── DistanceSRF04.cpp
├── AnalogDistanceSensor.h
├── DistanceGP2Y0A41SK.cpp
├── DistanceSensor.h
├── keywords.txt
├── UltrasonicDistanceSensor.cpp
├── CombinedDistanceSensors.h
├── CombinedDistanceSensors.cpp
└── AnalogDistanceSensor.cpp
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | *build/
2 | *.hex
3 | *.elf
4 | *.dblite
5 |
--------------------------------------------------------------------------------
/Documentation/html/graph_legend.md5:
--------------------------------------------------------------------------------
1 | 387ff8eb65306fa251338d3c9bd7bfff
--------------------------------------------------------------------------------
/Documentation/html/inherit_graph_0.md5:
--------------------------------------------------------------------------------
1 | a5bedd212bc3a12103f7086be2b6e234
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__coll__graph.md5:
--------------------------------------------------------------------------------
1 | 65eddc7f59f6b4c112b51b98df8db36d
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | 65eddc7f59f6b4c112b51b98df8db36d
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__coll__graph.md5:
--------------------------------------------------------------------------------
1 | 4fa31b1bf2b82f42c6d379bdb521d71c
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | 79e4ff9b2efcf7706be48bfcbc8c702a
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__coll__graph.md5:
--------------------------------------------------------------------------------
1 | 02db7cbd56545766bcd3b15cf2c1f999
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__coll__graph.md5:
--------------------------------------------------------------------------------
1 | 07b50b8b28b4126c4fa195f610f78bbc
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__coll__graph.md5:
--------------------------------------------------------------------------------
1 | 0c74338b990aa7190834cef85ddf0458
--------------------------------------------------------------------------------
/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c_dep.md5:
--------------------------------------------------------------------------------
1 | aa1b3be1b0fe3097521be4a437339ae4
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | a550074f391ba273325b335f7fd64787
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | 07b50b8b28b4126c4fa195f610f78bbc
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | 0c74338b990aa7190834cef85ddf0458
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__coll__graph.md5:
--------------------------------------------------------------------------------
1 | a4515dcca6637baa98f78c308e31cfe8
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__inherit__graph.md5:
--------------------------------------------------------------------------------
1 | 9522dbbaf4b549bc6e35047f88d6c78b
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__coll__graph.map:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/Documentation/html/bc_s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/bc_s.png
--------------------------------------------------------------------------------
/Documentation/html/bdwn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/bdwn.png
--------------------------------------------------------------------------------
/Documentation/html/closed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/closed.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2cl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2cl.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2mo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2mo.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2ns.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2ns.png
--------------------------------------------------------------------------------
/Documentation/html/nav_f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/nav_f.png
--------------------------------------------------------------------------------
/Documentation/html/nav_g.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/nav_g.png
--------------------------------------------------------------------------------
/Documentation/html/nav_h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/nav_h.png
--------------------------------------------------------------------------------
/Documentation/html/open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/open.png
--------------------------------------------------------------------------------
/Documentation/html/tab_a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/tab_a.png
--------------------------------------------------------------------------------
/Documentation/html/tab_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/tab_b.png
--------------------------------------------------------------------------------
/Documentation/html/tab_h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/tab_h.png
--------------------------------------------------------------------------------
/Documentation/html/tab_s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/tab_s.png
--------------------------------------------------------------------------------
/Documentation/html/doxygen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/doxygen.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2doc.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2link.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2node.png
--------------------------------------------------------------------------------
/Documentation/html/sync_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/sync_off.png
--------------------------------------------------------------------------------
/Documentation/html/sync_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/sync_on.png
--------------------------------------------------------------------------------
/Documentation/latex/refman.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/latex/refman.pdf
--------------------------------------------------------------------------------
/Documentation/html/ftv2blank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2blank.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2mnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2mnode.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2pnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2pnode.png
--------------------------------------------------------------------------------
/Documentation/TransferFunctions.ods:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/TransferFunctions.ods
--------------------------------------------------------------------------------
/Documentation/html/ftv2lastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2lastnode.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2mlastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2mlastnode.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2plastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2plastnode.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2splitbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2splitbar.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2vertline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2vertline.png
--------------------------------------------------------------------------------
/Documentation/html/graph_legend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/graph_legend.png
--------------------------------------------------------------------------------
/Documentation/html/search/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/search/close.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2folderclosed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2folderclosed.png
--------------------------------------------------------------------------------
/Documentation/html/ftv2folderopen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/ftv2folderopen.png
--------------------------------------------------------------------------------
/Documentation/html/inherit_graph_0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/inherit_graph_0.png
--------------------------------------------------------------------------------
/Documentation/html/search/all_6d.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['my_20personal_20index_20page',['My Personal Index Page',['../index.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/search/mag_sel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/search/mag_sel.png
--------------------------------------------------------------------------------
/Documentation/html/search/search_l.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/search/search_l.png
--------------------------------------------------------------------------------
/Documentation/html/search/search_m.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/search/search_m.png
--------------------------------------------------------------------------------
/Documentation/html/search/search_r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/search/search_r.png
--------------------------------------------------------------------------------
/Documentation/html/search/pages_6d.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['my_20personal_20index_20page',['My Personal Index Page',['../index.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/files.js:
--------------------------------------------------------------------------------
1 | var files =
2 | [
3 | [ "DistanceSensor", "dir_6dde59ad95b5166d5e65261f32edc45c.html", "dir_6dde59ad95b5166d5e65261f32edc45c" ]
4 | ];
--------------------------------------------------------------------------------
/Documentation/html/search/classes_61.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['analogdistancesensor',['AnalogDistanceSensor',['../class_analog_distance_sensor.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/InheritanceDiagram-DistanceSensor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/InheritanceDiagram-DistanceSensor.png
--------------------------------------------------------------------------------
/Documentation/html/search/all_75.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['ultrasonicdistancesensor',['UltrasonicDistanceSensor',['../class_ultrasonic_distance_sensor.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/InheritanceDiagram-DistanceSensor_v2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/InheritanceDiagram-DistanceSensor_v2.png
--------------------------------------------------------------------------------
/Documentation/datasheets/Distance_Ultrasonic_srf04.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/datasheets/Distance_Ultrasonic_srf04.pdf
--------------------------------------------------------------------------------
/Documentation/html/search/classes_75.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['ultrasonicdistancesensor',['UltrasonicDistanceSensor',['../class_ultrasonic_distance_sensor.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/search/pages_61.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['arduino_20library_20for_20distance_20sensors',['Arduino library for distance sensors',['../index.html',1,'']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_s_r_f04__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_sensor__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_s_r_f04__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_sensor__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk.pdf
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_analog_distance_sensor__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c_dep.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c_dep.png
--------------------------------------------------------------------------------
/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a41sk0f.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a41sk0f.pdf
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_g_p2_y0_a21_y_k__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_g_p2_y0_a41_s_k__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk_new.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk_new.pdf
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_analog_distance_sensor__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_g_p2_y0_a21_y_k__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_distance_g_p2_y0_a41_s_k__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__coll__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_ultrasonic_distance_sensor__coll__graph.png
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__inherit__graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeroendoggen/Arduino-distance-sensor-library/HEAD/Documentation/html/class_ultrasonic_distance_sensor__inherit__graph.png
--------------------------------------------------------------------------------
/Documentation/html/search/functions_61.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['analogdistancesensor',['AnalogDistanceSensor',['../class_analog_distance_sensor.html#a089770021c7ba24cf24f6ad20b8616b8',1,'AnalogDistanceSensor']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04.js:
--------------------------------------------------------------------------------
1 | var class_distance_s_r_f04 =
2 | [
3 | [ "DistanceSRF04", "class_distance_s_r_f04.html#a45d8ef4c0c4c28c45592415e69383e80", null ],
4 | [ "getDistanceTime", "class_distance_s_r_f04.html#a019a569fa5bcca56ed17bfab386d8f9d", null ]
5 | ];
--------------------------------------------------------------------------------
/Documentation/html/search/all_69.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['iscloser',['isCloser',['../class_distance_sensor.html#aaeb8f74df2282153123c30e07c775724',1,'DistanceSensor']]],
4 | ['isfarther',['isFarther',['../class_distance_sensor.html#a4135f6f4c351c5f0d001dbedab118dc4',1,'DistanceSensor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_69.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['iscloser',['isCloser',['../class_distance_sensor.html#aaeb8f74df2282153123c30e07c775724',1,'DistanceSensor']]],
4 | ['isfarther',['isFarther',['../class_distance_sensor.html#a4135f6f4c351c5f0d001dbedab118dc4',1,'DistanceSensor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__coll__graph.map:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k.js:
--------------------------------------------------------------------------------
1 | var class_distance_g_p2_y0_a21_y_k =
2 | [
3 | [ "DistanceGP2Y0A21YK", "class_distance_g_p2_y0_a21_y_k.html#a1f7ec1a134c5dcf471a1aa44a8879386", null ],
4 | [ "getDistanceCentimeter", "class_distance_g_p2_y0_a21_y_k.html#a3f1923b1357c540d9b45eae3650c83e8", null ]
5 | ];
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k.js:
--------------------------------------------------------------------------------
1 | var class_distance_g_p2_y0_a41_s_k =
2 | [
3 | [ "DistanceGP2Y0A41SK", "class_distance_g_p2_y0_a41_s_k.html#ab346b1774a0f4b96d044c593ba32186c", null ],
4 | [ "getDistanceCentimeter", "class_distance_g_p2_y0_a41_s_k.html#a2f0f8b6df63c05284c8df23a363715d1", null ]
5 | ];
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__coll__graph.map:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_73.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['setarefvoltage',['setARefVoltage',['../class_analog_distance_sensor.html#a7e8c18ea2a45d5b683b6cb04139396c8',1,'AnalogDistanceSensor']]],
4 | ['setaveraging',['setAveraging',['../class_distance_sensor.html#a77ec007235ec2e52d0e74507ec6afbc6',1,'DistanceSensor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_73.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['setarefvoltage',['setARefVoltage',['../class_analog_distance_sensor.html#a7e8c18ea2a45d5b683b6cb04139396c8',1,'AnalogDistanceSensor']]],
4 | ['setaveraging',['setAveraging',['../class_distance_sensor.html#a77ec007235ec2e52d0e74507ec6afbc6',1,'DistanceSensor']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/DistanceSensor/resources/lastbuild.log:
--------------------------------------------------------------------------------
1 | --------------------------------
2 | | Sun Nov 17 00:05:28 CET 2013 |
3 | --------------------------------
4 | | Succesfull builds : 7 |
5 | | Failed builds : 0 |
6 | |------------------------------|
7 | | Succesfull code checks : 0 |
8 | | Failed code checks : 6 |
9 | --------------------------------
10 | Build took 4 seconds.
11 |
--------------------------------------------------------------------------------
/DistanceSensor/resources/bcpp_indenter.cfg:
--------------------------------------------------------------------------------
1 | ascii_chars_only=yes
2 | backup_file=no
3 | indent_exec_sql=no
4 | indent_preprocessor=no
5 | leave_comments_nocode=no
6 | leave_graphic_chars=yes
7 | nonascii_quotes_to_octal=no
8 | place_brace_on_new_line=yes
9 | program_output=no
10 | use_tabs=no
11 | comments_with_code=50
12 | comments_with_nocode=0
13 | function_spacing=1
14 | indent_spacing=2
15 | queue_buffer=2
16 |
--------------------------------------------------------------------------------
/DistanceSensor/mainpage.dox:
--------------------------------------------------------------------------------
1 | /*! \mainpage Arduino library for distance sensors
2 | *
3 | * \section intro_sec Introduction
4 | *
5 | * The current version provides a unified interface for the following sensors:
6 | *
7 | *
8 | * - SRF04 & SRF05 Ultrasonic Ranger
9 | *
10 | *
- Sharp GP2Y0A21YK IR Distance sensors
11 | *
12 | *
- Sharp GP2Y0A41SK IR Distance sensors
13 | *
14 | */
15 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_61.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['analogdistancesensor',['AnalogDistanceSensor',['../class_analog_distance_sensor.html',1,'AnalogDistanceSensor'],['../class_analog_distance_sensor.html#a089770021c7ba24cf24f6ad20b8616b8',1,'AnalogDistanceSensor::AnalogDistanceSensor()']]],
4 | ['arduino_20library_20for_20distance_20sensors',['Arduino library for distance sensors',['../index.html',1,'']]]
5 | ];
6 |
--------------------------------------------------------------------------------
/Documentation/html/search/classes_64.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['distancegp2y0a21yk',['DistanceGP2Y0A21YK',['../class_distance_g_p2_y0_a21_y_k.html',1,'']]],
4 | ['distancegp2y0a41sk',['DistanceGP2Y0A41SK',['../class_distance_g_p2_y0_a41_s_k.html',1,'']]],
5 | ['distancesensor',['DistanceSensor',['../class_distance_sensor.html',1,'']]],
6 | ['distancesrf04',['DistanceSRF04',['../class_distance_s_r_f04.html',1,'']]]
7 | ];
8 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor.js:
--------------------------------------------------------------------------------
1 | var class_distance_sensor =
2 | [
3 | [ "isCloser", "class_distance_sensor.html#aaeb8f74df2282153123c30e07c775724", null ],
4 | [ "isFarther", "class_distance_sensor.html#a4135f6f4c351c5f0d001dbedab118dc4", null ],
5 | [ "setAveraging", "class_distance_sensor.html#a77ec007235ec2e52d0e74507ec6afbc6", null ],
6 | [ "_average", "class_distance_sensor.html#af58f6a161dff2f02fd65b26eed200460", null ]
7 | ];
--------------------------------------------------------------------------------
/DistanceSensor/examples/SRF04/Centimeter/Centimeter.ino:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | DistanceSRF04 Dist;
4 | int distance;
5 |
6 | void setup()
7 | {
8 | Serial.begin(9600);
9 | Dist.begin(2,3);
10 | }
11 |
12 | void loop()
13 | {
14 | distance = Dist.getDistanceCentimeter();
15 | Serial.print("\nDistance in centimers: ");
16 | Serial.print(distance);
17 | delay(500); //make it readable
18 | }
19 |
--------------------------------------------------------------------------------
/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c_dep.map:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/DistanceSensor/examples/GP2Y0A21YK/Centimeter/Centimeter.ino:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | DistanceGP2Y0A21YK Dist;
4 | int distance;
5 |
6 | void setup()
7 | {
8 | Serial.begin(9600);
9 | Dist.begin(A0);
10 | }
11 |
12 | void loop()
13 | {
14 | distance = Dist.getDistanceCentimeter();
15 | Serial.print("\nDistance in centimeters: ");
16 | Serial.print(distance);
17 | delay(500); //make it readable
18 | }
19 |
--------------------------------------------------------------------------------
/DistanceSensor/examples/GP2Y0A41SK/Centimeter/Centimeter.ino:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | DistanceGP2Y0A41SK Dist;
4 | int distance;
5 |
6 | void setup()
7 | {
8 | Serial.begin(9600);
9 | Dist.begin(A0);
10 | }
11 |
12 | void loop()
13 | {
14 | distance = Dist.getDistanceCentimeter();
15 | Serial.print("Distance in centimeters: ");
16 | Serial.println(distance);
17 | delay(500); //make it readable
18 | }
19 |
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_64.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['distancegp2y0a21yk',['DistanceGP2Y0A21YK',['../class_distance_g_p2_y0_a21_y_k.html#a1f7ec1a134c5dcf471a1aa44a8879386',1,'DistanceGP2Y0A21YK']]],
4 | ['distancegp2y0a41sk',['DistanceGP2Y0A41SK',['../class_distance_g_p2_y0_a41_s_k.html#ab346b1774a0f4b96d044c593ba32186c',1,'DistanceGP2Y0A41SK']]],
5 | ['distancesrf04',['DistanceSRF04',['../class_distance_s_r_f04.html#a45d8ef4c0c4c28c45592415e69383e80',1,'DistanceSRF04']]]
6 | ];
7 |
--------------------------------------------------------------------------------
/Documentation/html/search/nomatches.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Documentation/html/hierarchy.js:
--------------------------------------------------------------------------------
1 | var hierarchy =
2 | [
3 | [ "DistanceSensor", "class_distance_sensor.html", [
4 | [ "AnalogDistanceSensor", "class_analog_distance_sensor.html", [
5 | [ "DistanceGP2Y0A21YK", "class_distance_g_p2_y0_a21_y_k.html", null ],
6 | [ "DistanceGP2Y0A41SK", "class_distance_g_p2_y0_a41_s_k.html", null ]
7 | ] ],
8 | [ "UltrasonicDistanceSensor", "class_ultrasonic_distance_sensor.html", [
9 | [ "DistanceSRF04", "class_distance_s_r_f04.html", null ]
10 | ] ]
11 | ] ]
12 | ];
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__coll__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_62.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['begin',['begin',['../class_analog_distance_sensor.html#aab16a8975b46d82ac9fd7077e839f35c',1,'AnalogDistanceSensor::begin()'],['../class_analog_distance_sensor.html#a57a38f5fd395392d6a68e57bf2e86d4b',1,'AnalogDistanceSensor::begin(int distancePin)'],['../class_ultrasonic_distance_sensor.html#a936da791e81d90e386850913cbcbab29',1,'UltrasonicDistanceSensor::begin()'],['../class_ultrasonic_distance_sensor.html#a771d720e7d6b20e0e303e4a1fd411095',1,'UltrasonicDistanceSensor::begin(int echoPin, int trigPin)']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__coll__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__coll__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_62.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['begin',['begin',['../class_analog_distance_sensor.html#aab16a8975b46d82ac9fd7077e839f35c',1,'AnalogDistanceSensor::begin()'],['../class_analog_distance_sensor.html#a57a38f5fd395392d6a68e57bf2e86d4b',1,'AnalogDistanceSensor::begin(int distancePin)'],['../class_ultrasonic_distance_sensor.html#a936da791e81d90e386850913cbcbab29',1,'UltrasonicDistanceSensor::begin()'],['../class_ultrasonic_distance_sensor.html#a771d720e7d6b20e0e303e4a1fd411095',1,'UltrasonicDistanceSensor::begin(int echoPin, int trigPin)']]]
4 | ];
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a21_y_k__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_g_p2_y0_a41_s_k__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/DistanceSensor/DistanceGP2Y0A21YK.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #ifndef DistanceGP2Y0A21YK_h
5 | #define DistanceGP2Y0A21YK_h
6 |
7 | #if defined(ARDUINO) && ARDUINO >= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #include "AnalogDistanceSensor.h"
15 |
16 | class DistanceGP2Y0A21YK : public AnalogDistanceSensor
17 | {
18 | public:
19 | DistanceGP2Y0A21YK();
20 | int getDistanceCentimeter();
21 | };
22 | #endif
23 |
--------------------------------------------------------------------------------
/DistanceSensor/DistanceGP2Y0A41SK.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #ifndef DistanceGP2Y0A41SK_h
5 | #define DistanceGP2Y0A41SK_h
6 |
7 | #if defined(ARDUINO) && ARDUINO >= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #include "AnalogDistanceSensor.h"
15 |
16 | class DistanceGP2Y0A41SK : public AnalogDistanceSensor
17 | {
18 | public:
19 | DistanceGP2Y0A41SK();
20 | int getDistanceCentimeter();
21 | };
22 | #endif
23 |
--------------------------------------------------------------------------------
/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c.js:
--------------------------------------------------------------------------------
1 | var dir_6dde59ad95b5166d5e65261f32edc45c =
2 | [
3 | [ "AnalogDistanceSensor.h", "_analog_distance_sensor_8h_source.html", null ],
4 | [ "DistanceGP2Y0A21YK.h", "_distance_g_p2_y0_a21_y_k_8h_source.html", null ],
5 | [ "DistanceGP2Y0A41SK.h", "_distance_g_p2_y0_a41_s_k_8h_source.html", null ],
6 | [ "DistanceSensor.h", "_distance_sensor_8h_source.html", null ],
7 | [ "DistanceSRF04.h", "_distance_s_r_f04_8h_source.html", null ],
8 | [ "UltrasonicDistanceSensor.h", "_ultrasonic_distance_sensor_8h_source.html", null ]
9 | ];
--------------------------------------------------------------------------------
/DistanceSensor/DistanceSRF04.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #ifndef DistanceSRF04_h
5 | #define DistanceSRF04_h
6 |
7 | #if defined(ARDUINO) && ARDUINO >= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #include "UltrasonicDistanceSensor.h"
15 |
16 | class DistanceSRF04 : public UltrasonicDistanceSensor
17 | {
18 | public:
19 | DistanceSRF04();
20 | int getDistanceTime();
21 |
22 | private:
23 | long _duration;
24 | };
25 | #endif
26 |
--------------------------------------------------------------------------------
/Documentation/html/annotated.js:
--------------------------------------------------------------------------------
1 | var annotated =
2 | [
3 | [ "AnalogDistanceSensor", "class_analog_distance_sensor.html", "class_analog_distance_sensor" ],
4 | [ "DistanceGP2Y0A21YK", "class_distance_g_p2_y0_a21_y_k.html", "class_distance_g_p2_y0_a21_y_k" ],
5 | [ "DistanceGP2Y0A41SK", "class_distance_g_p2_y0_a41_s_k.html", "class_distance_g_p2_y0_a41_s_k" ],
6 | [ "DistanceSensor", "class_distance_sensor.html", "class_distance_sensor" ],
7 | [ "DistanceSRF04", "class_distance_s_r_f04.html", "class_distance_s_r_f04" ],
8 | [ "UltrasonicDistanceSensor", "class_ultrasonic_distance_sensor.html", "class_ultrasonic_distance_sensor" ]
9 | ];
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_64.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['distancegp2y0a21yk',['DistanceGP2Y0A21YK',['../class_distance_g_p2_y0_a21_y_k.html',1,'DistanceGP2Y0A21YK'],['../class_distance_g_p2_y0_a21_y_k.html#a1f7ec1a134c5dcf471a1aa44a8879386',1,'DistanceGP2Y0A21YK::DistanceGP2Y0A21YK()']]],
4 | ['distancegp2y0a41sk',['DistanceGP2Y0A41SK',['../class_distance_g_p2_y0_a41_s_k.html',1,'DistanceGP2Y0A41SK'],['../class_distance_g_p2_y0_a41_s_k.html#ab346b1774a0f4b96d044c593ba32186c',1,'DistanceGP2Y0A41SK::DistanceGP2Y0A41SK()']]],
5 | ['distancesensor',['DistanceSensor',['../class_distance_sensor.html',1,'']]],
6 | ['distancesrf04',['DistanceSRF04',['../class_distance_s_r_f04.html',1,'DistanceSRF04'],['../class_distance_s_r_f04.html#a45d8ef4c0c4c28c45592415e69383e80',1,'DistanceSRF04::DistanceSRF04()']]]
7 | ];
8 |
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor.js:
--------------------------------------------------------------------------------
1 | var class_analog_distance_sensor =
2 | [
3 | [ "AnalogDistanceSensor", "class_analog_distance_sensor.html#a089770021c7ba24cf24f6ad20b8616b8", null ],
4 | [ "begin", "class_analog_distance_sensor.html#aab16a8975b46d82ac9fd7077e839f35c", null ],
5 | [ "begin", "class_analog_distance_sensor.html#a57a38f5fd395392d6a68e57bf2e86d4b", null ],
6 | [ "getDistanceRaw", "class_analog_distance_sensor.html#afd371c93052963334be7677f08dae5b6", null ],
7 | [ "getDistanceVolt", "class_analog_distance_sensor.html#af677a29eb12b0349ff34120c1d87ccd3", null ],
8 | [ "setARefVoltage", "class_analog_distance_sensor.html#a7e8c18ea2a45d5b683b6cb04139396c8", null ],
9 | [ "_refVoltage", "class_analog_distance_sensor.html#a9afcdb39f6bf3b672b4e334aa5bcc360", null ]
10 | ];
--------------------------------------------------------------------------------
/DistanceSensor/DistanceSensor.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 |
6 | /// isCloser: check whether the distance to the detected object is smaller than a given threshold
7 | boolean DistanceSensor::isCloser(int threshold)
8 | {
9 | return threshold>getDistanceCentimeter();
10 | }
11 |
12 | /// isFarther: check whether the distance to the detected object is bigger than a given threshold
13 | boolean DistanceSensor::isFarther(int threshold)
14 | {
15 | return threshold= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #define __cxa_pure_virtual()
15 |
16 | #include "DistanceSensor.h"
17 |
18 | class UltrasonicDistanceSensor : public DistanceSensor
19 | {
20 | public:
21 | virtual int getDistanceTime()=0;
22 |
23 | void begin();
24 | void begin(int echoPin, int trigPin);
25 |
26 | int getDistanceCentimeter();
27 | int getDistanceInch();
28 |
29 | protected:
30 | int _trigPin;
31 | int _echoPin;
32 | };
33 | #endif
34 |
--------------------------------------------------------------------------------
/DistanceSensor/examples/CombinedSensor/Centimeter/Centimeter.ino:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 | //
4 | // Creates several "sensor objects" of different ADC pins: A0 -> A3
5 | // Read the sensors in print the distance
6 |
7 | // TODO: warning the code compiles and should work correctly (but untested on hardware)
8 |
9 | #include
10 |
11 | CombinedDistanceSensors Dist;
12 |
13 | int distance;
14 |
15 | void setup()
16 | {
17 | Serial.begin(9600);
18 | Dist.begin(A0, A1, A2, A3);
19 | }
20 |
21 | void loop()
22 | {
23 | distance = Dist.getDistanceCentimeter();
24 |
25 | Serial.print("Distance: ");
26 | Serial.println(distance);
27 | delay(500); //make it readable
28 | }
29 |
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor.js:
--------------------------------------------------------------------------------
1 | var class_ultrasonic_distance_sensor =
2 | [
3 | [ "begin", "class_ultrasonic_distance_sensor.html#a936da791e81d90e386850913cbcbab29", null ],
4 | [ "begin", "class_ultrasonic_distance_sensor.html#a771d720e7d6b20e0e303e4a1fd411095", null ],
5 | [ "getDistanceCentimeter", "class_ultrasonic_distance_sensor.html#aa8093d0c333e6ce180f1708ca99ae2c1", null ],
6 | [ "getDistanceInch", "class_ultrasonic_distance_sensor.html#a3a8b89cb52091f36dd87ed6afff9617a", null ],
7 | [ "getDistanceTime", "class_ultrasonic_distance_sensor.html#a4f1e093a30c101b8ec225a2970712d58", null ],
8 | [ "_echoPin", "class_ultrasonic_distance_sensor.html#a2a7b494306ba0f88dc6a9151d9a5d0e3", null ],
9 | [ "_trigPin", "class_ultrasonic_distance_sensor.html#a60452f845c3a47673212e2cabb80c862", null ]
10 | ];
--------------------------------------------------------------------------------
/DistanceSensor/DistanceGP2Y0A21YK.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 |
6 | /// Constructor
7 | DistanceGP2Y0A21YK::DistanceGP2Y0A21YK()
8 | {
9 | }
10 |
11 | /// getDistanceCentimeter(): Returns the distance in centimeters
12 | int DistanceGP2Y0A21YK::getDistanceCentimeter()
13 | {
14 | int adcValue=getDistanceRaw();
15 | if (adcValue > 600) // lower boundary: 4 cm (3 cm means under the boundary)
16 | {
17 | return (3);
18 | }
19 |
20 | if (adcValue < 80 ) //upper boundary: 36 cm (returning 37 means over the boundary)
21 | {
22 | return (37);
23 | }
24 |
25 | else
26 | {
27 | return (1 / (0.0002391473 * adcValue - 0.0100251467));
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DistanceSensor/DistanceSRF04.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 | #include
6 |
7 | ///
8 | /// Constructor
9 | ///
10 | DistanceSRF04::DistanceSRF04()
11 | {
12 | _duration=0;
13 | _average=0;
14 | }
15 |
16 | ///
17 | /// getDistanceTime(): Returns the time between transmission and echo receive
18 | ///
19 | int DistanceSRF04::getDistanceTime()
20 | {
21 | long sum = 0;
22 | for (int i=0;i<_average;i++)
23 | {
24 | digitalWrite(_trigPin, LOW);
25 | delayMicroseconds(2);
26 | digitalWrite(_trigPin, HIGH);
27 | delayMicroseconds(10);
28 | digitalWrite(_trigPin, LOW);
29 | _duration = pulseIn(_echoPin, HIGH,17400);
30 | sum=sum+_duration;
31 | }
32 | return(int(sum/_average));
33 | }
34 |
--------------------------------------------------------------------------------
/DistanceSensor/AnalogDistanceSensor.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #ifndef AnalogDistanceSensor_h
5 | #define AnalogDistanceSensor_h
6 |
7 | #if defined(ARDUINO) && ARDUINO >= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #define __cxa_pure_virtual()
15 |
16 | #include "DistanceSensor.h"
17 |
18 | //abstract class AnalogDistanceSensor
19 | class AnalogDistanceSensor : public DistanceSensor
20 | {
21 | public:
22 | AnalogDistanceSensor();
23 | void begin();
24 | void begin(int distancePin);
25 |
26 | int getDistanceRaw();
27 |
28 | void setARefVoltage(int _refV);
29 |
30 | private:
31 | int _mapGP2Y0A21YK_V(int value);
32 | int _distancePin;
33 |
34 | protected:
35 | int _refVoltage;
36 | };
37 | #endif
38 |
--------------------------------------------------------------------------------
/Documentation/html/inherit_graph_0.map:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/DistanceSensor/DistanceGP2Y0A41SK.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 | #include
6 |
7 | /// Constructor
8 | DistanceGP2Y0A41SK::DistanceGP2Y0A41SK()
9 | {
10 | }
11 |
12 | /// getDistanceCentimeter(): Returns the distance in centimeters: between 4-36cm (3 & 37 are boundary values)
13 | int DistanceGP2Y0A41SK::getDistanceCentimeter()
14 | {
15 | int adcValue=getDistanceRaw();
16 | if (adcValue > 600) // lower boundary: 4 cm (3 cm means under the boundary)
17 | {
18 | return (3);
19 | }
20 |
21 | if (adcValue < 80 ) //upper boundary: 36 cm (returning 37 means over the boundary)
22 | {
23 | return (37);
24 | }
25 |
26 | else
27 | {
28 | return (1 / (0.000413153 * adcValue - 0.0055266887));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DistanceSensor/DistanceSensor.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #ifndef DistanceSensor_h
5 | #define DistanceSensor_h
6 |
7 | #if defined(ARDUINO) && ARDUINO >= 100
8 | #include "Arduino.h"
9 | #else
10 | #include "WProgram.h"
11 | #include
12 | #endif
13 |
14 | #define __cxa_pure_virtual()
15 |
16 | //abstract class DistanceSensor
17 | class DistanceSensor
18 | {
19 | public:
20 | boolean isCloser(int threshold); // Compare distance value to threshold
21 | boolean isFarther(int threshold); // Compare distance value to threshold
22 |
23 | void setAveraging(int avg); // calculate average of multiple samples
24 |
25 | protected:
26 | int _average;
27 |
28 | private:
29 | virtual int getDistanceCentimeter()=0;
30 | // inline virtual void begin(){ /*void*/ };
31 | // Is implemented in derived classes
32 | };
33 | #endif
34 |
--------------------------------------------------------------------------------
/DistanceSensor/keywords.txt:
--------------------------------------------------------------------------------
1 | ##############################################
2 | # Syntax Coloring Map For DistanceSensor #
3 | ##############################################
4 |
5 | ##############################################
6 | # Datatypes (KEYWORD1)
7 | ##############################################
8 |
9 | DistanceGP2Y0A21YK KEYWORD1
10 | DistanceSRF04 KEYWORD1
11 | DistanceGP2Y0A41SK KEYWORD1
12 | CombinedDistanceSensors KEYWORD1
13 |
14 | ##############################################
15 | # Methods and Functions (KEYWORD2)
16 | ##############################################
17 |
18 | begin KEYWORD2
19 | getDistanceRaw KEYWORD2
20 | getDistanceVolt KEYWORD2
21 | getDistanceCentimeter KEYWORD2
22 | getDistanceTime KEYWORD2
23 | getDistanceInch KEYWORD2
24 |
25 | setAveraging KEYWORD2
26 | setARefVoltage KEYWORD2
27 | isCloser KEYWORD2
28 | isFarther KEYWORD2
29 |
30 | ##############################################
31 | # Constants (LITERAL1)
32 | ##############################################
33 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_67.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['getdistancecentimeter',['getDistanceCentimeter',['../class_distance_g_p2_y0_a21_y_k.html#a3f1923b1357c540d9b45eae3650c83e8',1,'DistanceGP2Y0A21YK::getDistanceCentimeter()'],['../class_distance_g_p2_y0_a41_s_k.html#a2f0f8b6df63c05284c8df23a363715d1',1,'DistanceGP2Y0A41SK::getDistanceCentimeter()'],['../class_ultrasonic_distance_sensor.html#aa8093d0c333e6ce180f1708ca99ae2c1',1,'UltrasonicDistanceSensor::getDistanceCentimeter()']]],
4 | ['getdistanceinch',['getDistanceInch',['../class_ultrasonic_distance_sensor.html#a3a8b89cb52091f36dd87ed6afff9617a',1,'UltrasonicDistanceSensor']]],
5 | ['getdistanceraw',['getDistanceRaw',['../class_analog_distance_sensor.html#afd371c93052963334be7677f08dae5b6',1,'AnalogDistanceSensor']]],
6 | ['getdistancetime',['getDistanceTime',['../class_distance_s_r_f04.html#a019a569fa5bcca56ed17bfab386d8f9d',1,'DistanceSRF04']]],
7 | ['getdistancevolt',['getDistanceVolt',['../class_analog_distance_sensor.html#af677a29eb12b0349ff34120c1d87ccd3',1,'AnalogDistanceSensor']]]
8 | ];
9 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_67.js:
--------------------------------------------------------------------------------
1 | var searchData=
2 | [
3 | ['getdistancecentimeter',['getDistanceCentimeter',['../class_distance_g_p2_y0_a21_y_k.html#a3f1923b1357c540d9b45eae3650c83e8',1,'DistanceGP2Y0A21YK::getDistanceCentimeter()'],['../class_distance_g_p2_y0_a41_s_k.html#a2f0f8b6df63c05284c8df23a363715d1',1,'DistanceGP2Y0A41SK::getDistanceCentimeter()'],['../class_ultrasonic_distance_sensor.html#aa8093d0c333e6ce180f1708ca99ae2c1',1,'UltrasonicDistanceSensor::getDistanceCentimeter()']]],
4 | ['getdistanceinch',['getDistanceInch',['../class_ultrasonic_distance_sensor.html#a3a8b89cb52091f36dd87ed6afff9617a',1,'UltrasonicDistanceSensor']]],
5 | ['getdistanceraw',['getDistanceRaw',['../class_analog_distance_sensor.html#afd371c93052963334be7677f08dae5b6',1,'AnalogDistanceSensor']]],
6 | ['getdistancetime',['getDistanceTime',['../class_distance_s_r_f04.html#a019a569fa5bcca56ed17bfab386d8f9d',1,'DistanceSRF04']]],
7 | ['getdistancevolt',['getDistanceVolt',['../class_analog_distance_sensor.html#af677a29eb12b0349ff34120c1d87ccd3',1,'AnalogDistanceSensor']]]
8 | ];
9 |
--------------------------------------------------------------------------------
/DistanceSensor/UltrasonicDistanceSensor.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 |
6 | /// Begin function to set default pins
7 | void UltrasonicDistanceSensor::begin()
8 | {
9 | begin (2,3);
10 | }
11 |
12 | /// Begin variables
13 | /// - int trigPin: pin used to activate the sensor
14 | /// - int echoPin: pin used to read the reflection
15 | void UltrasonicDistanceSensor::begin(int echoPin, int trigPin)
16 | {
17 | _trigPin=trigPin;
18 | _echoPin=echoPin;
19 | pinMode(_trigPin, OUTPUT);
20 | pinMode(_echoPin, INPUT);
21 | setAveraging(1); //1: all samples passed to higher level
22 | }
23 |
24 | /// getDistanceCentimeter(): Returns the distance in centimeters
25 | int UltrasonicDistanceSensor::getDistanceCentimeter()
26 | {
27 | return (getDistanceTime()/58);
28 | }
29 |
30 | /// getDistanceInch(): Returns the distance in inches
31 | int UltrasonicDistanceSensor::getDistanceInch()
32 | {
33 | return (getDistanceTime()/148);
34 | }
35 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_61.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_62.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_64.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_67.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_69.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_6d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_73.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/all_75.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/pages_61.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/pages_6d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/classes_61.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/classes_64.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/classes_75.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_61.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_62.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_64.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_67.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_69.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/Documentation/html/search/functions_73.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
Loading...
11 |
12 |
15 |
Searching...
16 |
No Matches
17 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Arduino library for distance sensors is copyright 2011-2013 Jeroen Doggen.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/DistanceSensor/CombinedDistanceSensors.h:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | // TODO: warning the code compiles and should work correctly (but untested on hardware)
5 |
6 | #ifndef CombinedDistanceSensors_h
7 | #define CombinedDistanceSensors_h
8 |
9 | #if defined(ARDUINO) && ARDUINO >= 100
10 | #include "Arduino.h"
11 | #else
12 | #include "WProgram.h"
13 | #include
14 | #endif
15 |
16 | #include
17 | #include
18 |
19 |
20 | //Class CombinedDistanceSensors
21 | class CombinedDistanceSensors
22 | {
23 | public:
24 | CombinedDistanceSensors();
25 |
26 | void begin();
27 | void begin(int distancePin1, int distancePin2, int distancePin3, int distancePin4);
28 |
29 | int getDistanceCentimeter();
30 |
31 | private:
32 | DistanceGP2Y0A41SK _DistSK_1;
33 | DistanceGP2Y0A41SK _DistSK_2;
34 |
35 | DistanceGP2Y0A21YK _DistYK_1;
36 | DistanceGP2Y0A21YK _DistYK_2;
37 |
38 | int _distance;
39 | int _distance1;
40 | int _distance2;
41 | int _distance3;
42 | int _distance4;
43 | };
44 | #endif
45 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor__inherit__graph.map:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/DistanceSensor/CombinedDistanceSensors.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | // TODO: warning the code compiles and should work correctly (but untested on hardware)
5 |
6 | #include
7 |
8 | /// Constructor
9 | CombinedDistanceSensors::CombinedDistanceSensors()
10 | {
11 | }
12 |
13 | /// Begin function to set input pins
14 | void CombinedDistanceSensors::begin()
15 | {
16 | _DistSK_1.begin(A0);
17 | _DistSK_2.begin(A1);
18 |
19 | _DistYK_1.begin(A2);
20 | _DistYK_2.begin(A3);
21 | }
22 |
23 |
24 | void CombinedDistanceSensors::begin(int distancePin1, int distancePin2, int distancePin3, int distancePin4)
25 | {
26 | _DistSK_1.begin(distancePin1);
27 | _DistSK_2.begin(distancePin2);
28 |
29 | _DistYK_1.begin(distancePin3);
30 | _DistYK_2.begin(distancePin4);
31 | }
32 |
33 | int CombinedDistanceSensors::getDistanceCentimeter()
34 | {
35 | _distance1 = _DistSK_1.getDistanceCentimeter();
36 | _distance2 = _DistSK_2.getDistanceCentimeter();
37 | _distance3 = _DistYK_1.getDistanceCentimeter();
38 | _distance4 = _DistYK_2.getDistanceCentimeter();
39 |
40 | _distance = (_distance1 + _distance2 + _distance3 + _distance1 ) / 4;
41 |
42 | return (_distance);
43 | }
44 |
--------------------------------------------------------------------------------
/DistanceSensor/examples/MultiSensor/Centimeter/Centimeter.ino:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 | //
4 | // Creates several "sensor objects" of different ADC pins: A0 -> A3
5 | // Read the sensors in print the distance
6 |
7 | // TODO: warning the code compiles (but untested on hardware)
8 |
9 | #include
10 | #include
11 |
12 | DistanceGP2Y0A41SK DistSK_1;
13 | DistanceGP2Y0A41SK DistSK_2;
14 |
15 | DistanceGP2Y0A21YK DistYK_1;
16 | DistanceGP2Y0A21YK DistYK_2;
17 |
18 | int distance1, distance2, distance3, distance4;
19 |
20 | void setup()
21 | {
22 | Serial.begin(9600);
23 | DistSK_1.begin(A0);
24 | DistSK_2.begin(A1);
25 | DistYK_1.begin(A2);
26 | DistYK_2.begin(A3);
27 | }
28 |
29 | void loop()
30 | {
31 | distance1 = DistSK_1.getDistanceCentimeter();
32 | distance2 = DistSK_2.getDistanceCentimeter();
33 | distance3 = DistYK_1.getDistanceCentimeter();
34 | distance4 = DistYK_2.getDistanceCentimeter();
35 |
36 | Serial.print("Sensor1: ");
37 | Serial.print(distance1);
38 | Serial.print(" | Sensor2: ");
39 | Serial.print(distance2);
40 | Serial.print(" | Sensor3: ");
41 | Serial.print(distance3);
42 | Serial.print(" | Sensor4: ");
43 | Serial.println(distance4);
44 | delay(500); //make it readable
45 | }
46 |
--------------------------------------------------------------------------------
/Documentation/html/tabs.css:
--------------------------------------------------------------------------------
1 | .tabs, .tabs2, .tabs3 {
2 | background-image: url('tab_b.png');
3 | width: 100%;
4 | z-index: 101;
5 | font-size: 13px;
6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
7 | }
8 |
9 | .tabs2 {
10 | font-size: 10px;
11 | }
12 | .tabs3 {
13 | font-size: 9px;
14 | }
15 |
16 | .tablist {
17 | margin: 0;
18 | padding: 0;
19 | display: table;
20 | }
21 |
22 | .tablist li {
23 | float: left;
24 | display: table-cell;
25 | background-image: url('tab_b.png');
26 | line-height: 36px;
27 | list-style: none;
28 | }
29 |
30 | .tablist a {
31 | display: block;
32 | padding: 0 20px;
33 | font-weight: bold;
34 | background-image:url('tab_s.png');
35 | background-repeat:no-repeat;
36 | background-position:right;
37 | color: #283A5D;
38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
39 | text-decoration: none;
40 | outline: none;
41 | }
42 |
43 | .tabs3 .tablist a {
44 | padding: 0 10px;
45 | }
46 |
47 | .tablist a:hover {
48 | background-image: url('tab_h.png');
49 | background-repeat:repeat-x;
50 | color: #fff;
51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
52 | text-decoration: none;
53 | }
54 |
55 | .tablist li.current a {
56 | background-image: url('tab_a.png');
57 | background-repeat:repeat-x;
58 | color: #fff;
59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
60 | }
61 |
--------------------------------------------------------------------------------
/DistanceSensor/AnalogDistanceSensor.cpp:
--------------------------------------------------------------------------------
1 | // Arduino library for distance sensors
2 | // Copyright 2011-2015 Jeroen Doggen (jeroendoggen@gmail.com)
3 |
4 | #include
5 |
6 | /// Constructor
7 | AnalogDistanceSensor::AnalogDistanceSensor()
8 | {
9 | _distancePin=0;
10 | _refVoltage=0;
11 | }
12 |
13 | /// Begin function to set input pins: distancePin = A0.
14 | void AnalogDistanceSensor::begin()
15 | {
16 | begin (A0);
17 | }
18 |
19 | /// Begin variables
20 | /// - int _distancePin: number indicating the distance to an object: ANALOG IN
21 | /// When you use begin() without parameters standard values are loaded: A0
22 | void AnalogDistanceSensor::begin(int distancePin)
23 | {
24 | pinMode(distancePin, INPUT);
25 | _distancePin=distancePin;
26 | setAveraging(1); //1: all samples passed to higher level
27 | setARefVoltage(5); // 5: default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
28 | //setARefVoltage(3); // external analog reference: for 3.3V: put a wire between the AREF pin and the 3.3V VCC pin.
29 | //This increases accuracy (and uses a different LUT)
30 | }
31 |
32 | /// getDistanceRaw(): Returns the distance as a raw value: ADC output: 0 -> 1023
33 | int AnalogDistanceSensor::getDistanceRaw()
34 | {
35 | return (analogRead(_distancePin));
36 | }
37 |
38 | /// _mapGP2Y0A21YKV: maps the ADC output to the input voltage of the ADC
39 | int AnalogDistanceSensor::_mapGP2Y0A21YK_V(int value)
40 | {
41 | if (_refVoltage == 3)
42 | {
43 | return map(value,0,1023,0,3300);
44 | }
45 | if (_refVoltage == 5)
46 | {
47 | return map(value,0,1023,0,5000);
48 | }
49 | else
50 | {
51 | return (0);
52 | }
53 | }
54 |
55 | /// setARefVoltage:set the ADC reference voltage: (default value: 5V, set to 3 for external reference value, typically 3.3 on Arduino boards)
56 | void AnalogDistanceSensor::setARefVoltage(int refV)
57 | {
58 | _refVoltage=refV;
59 | if (_refVoltage == 5)
60 | {
61 | analogReference(DEFAULT);
62 | }
63 | if (_refVoltage == 3)
64 | {
65 | analogReference(EXTERNAL);
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](http://dx.doi.org/10.5281/zenodo.13196)
2 |
3 | # Arduino library for distance sensors
4 | The current version provides a unified interface for four sensors:
5 |
6 | * SRF04 & SRF05 Ultrasonic Ranger
7 | * Sharp GP2Y0A21YK IR Distance sensor
8 | * Sharp GP2Y0A41SK IR Distance sensor
9 |
10 | Code for the individual sensors in also maintained in separate Google code projects. (will be moved to Github soon) (http://code.google.com/u/104098523773938750140/)
11 |
12 | ## Other Sharp distance sensors:
13 |
14 | Currently this library only supports the sensors mentioned above.
15 | If you want to use other distance sensors with this libraries you can do that by adding the appropriate source files.
16 | Have a look at the class diagram below to get an idea of the structure.
17 |
18 | Adding an other analog Sharp sensor would mean copy/pasting some of the existing (.cpp & .h) files and changing some parameters in the calculation in the function "getDistanceCentimeter".
19 | You can either derive the parameters from your datasheet or perform a linear regression on experimental data using (1/distance on the X-axis!)
20 |
21 | Feel free to fork this project & send me a pull request if you have some correctly working code.
22 |
23 | ## Folders:
24 | * DistanceSensor: source for the Arduino library
25 | * Documentation: generated with Doxygen (html, Latex)
26 |
27 | ## Datasheets:
28 | Analog IR Distance sensors:
29 | * [Sharp gp2y0a21yk](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk_new.pdf)
30 | * [Sharp gp2y0a41sk0f](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a41sk0f.pdf)
31 |
32 | Ultrasonic sensors:
33 | * [SRF-04](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_Ultrasonic_srf04.pdf)
34 |
35 |
36 | ## Class diagram:
37 | 
38 |
--------------------------------------------------------------------------------
/Documentation/html/dynsections.js:
--------------------------------------------------------------------------------
1 | function toggleVisibility(linkObj)
2 | {
3 | var base = $(linkObj).attr('id');
4 | var summary = $('#'+base+'-summary');
5 | var content = $('#'+base+'-content');
6 | var trigger = $('#'+base+'-trigger');
7 | var src=$(trigger).attr('src');
8 | if (content.is(':visible')===true) {
9 | content.hide();
10 | summary.show();
11 | $(linkObj).addClass('closed').removeClass('opened');
12 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
13 | } else {
14 | content.show();
15 | summary.hide();
16 | $(linkObj).removeClass('closed').addClass('opened');
17 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
18 | }
19 | return false;
20 | }
21 |
22 | function updateStripes()
23 | {
24 | $('table.directory tr').
25 | removeClass('even').filter(':visible:even').addClass('even');
26 | }
27 | function toggleLevel(level)
28 | {
29 | $('table.directory tr').each(function(){
30 | var l = this.id.split('_').length-1;
31 | var i = $('#img'+this.id.substring(3));
32 | var a = $('#arr'+this.id.substring(3));
33 | if (l=0) window.location.hash=url.substr(i);
77 | var _preventDefault = function(evt) { evt.preventDefault(); };
78 | $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault);
79 | $(document).bind('touchmove',function(e){
80 | try {
81 | var target = e.target;
82 | while (target) {
83 | if ($(target).css('-webkit-overflow-scrolling')=='touch') return;
84 | target = target.parentNode;
85 | }
86 | e.preventDefault();
87 | } catch(err) {
88 | e.preventDefault();
89 | }
90 | });
91 | }
92 |
93 |
94 |
--------------------------------------------------------------------------------
/DistanceSensor/resources/errors.log:
--------------------------------------------------------------------------------
1 | Sun Dec 16 22:04:09 CET 2012: Cppcheck errors in cpp file(s)
2 | Sun Dec 16 22:05:51 CET 2012: Build errors in folder: 'GP2Y0A41SK'
3 | Sun Dec 16 22:05:51 CET 2012: Build errors in folder: 'GP2Y0A21YK'
4 | Sun Dec 16 22:05:51 CET 2012: Build errors in folder: 'SRF04'
5 | Sun Dec 16 22:07:17 CET 2012: Build errors in folder: 'GP2Y0A41SK'
6 | Sun Dec 16 22:07:17 CET 2012: Build errors in folder: 'GP2Y0A21YK'
7 | Sun Dec 16 22:07:18 CET 2012: Build errors in folder: 'SRF04'
8 | Sun Dec 16 22:08:03 CET 2012: Build errors in folder: 'GP2Y0A41SK'
9 | Sun Dec 16 22:08:06 CET 2012: Build errors in folder: 'GP2Y0A41SK'
10 | Sun Dec 16 22:08:08 CET 2012: Build errors in folder: 'GP2Y0A41SK'
11 | Sun Dec 16 22:08:10 CET 2012: Build errors in folder: 'GP2Y0A21YK'
12 | Sun Dec 16 22:08:13 CET 2012: Build errors in folder: 'GP2Y0A21YK'
13 | Mon Dec 17 00:26:18 CET 2012: Cppcheck errors in folder: 'SRF04'
14 | Mon Dec 17 00:26:18 CET 2012: Cppcheck errors in folder: 'GP2Y0A41SK'
15 | Mon Dec 17 00:26:18 CET 2012: Cppcheck errors in folder: 'GP2Y0A41SK'
16 | Mon Dec 17 00:26:18 CET 2012: Cppcheck errors in folder: 'GP2Y0A21YK'
17 | Mon Dec 17 00:26:18 CET 2012: Cppcheck errors in folder: 'GP2Y0A21YK'
18 | Mon Dec 17 00:26:35 CET 2012: Cppcheck errors in folder: 'SRF04'
19 | Mon Dec 17 00:26:35 CET 2012: Cppcheck errors in folder: 'GP2Y0A41SK'
20 | Mon Dec 17 00:26:35 CET 2012: Cppcheck errors in folder: 'GP2Y0A41SK'
21 | Mon Dec 17 00:26:35 CET 2012: Cppcheck errors in folder: 'GP2Y0A21YK'
22 | Mon Dec 17 00:26:35 CET 2012: Cppcheck errors in folder: 'GP2Y0A21YK'
23 | Mon Dec 17 00:41:34 CET 2012: Cppcheck errors in folder: 'GP2Y0A41SK'
24 | Mon Dec 17 00:41:35 CET 2012: Cppcheck errors in folder: 'GP2Y0A21YK'
25 | Mon Dec 17 00:41:35 CET 2012: Cppcheck errors in folder: 'SRF04'
26 | Mon Dec 17 01:26:22 CET 2012: Cppcheck errors in folder: 'build'
27 | Mon Dec 17 01:26:31 CET 2012: Cppcheck errors in folder: 'build'
28 | Tue Dec 25 03:33:00 CET 2012: Build errors in folder: 'GP2Y0A21YK UnitTest'
29 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A21YK RawData'
30 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A21YK Centimeter'
31 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A21YK UnitTest'
32 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A21YK Voltage'
33 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A41SK RawData'
34 | Tue Oct 1 20:49:49 CEST 2013: Build errors in folder: 'GP2Y0A41SK Centimeter'
35 | Tue Oct 1 20:49:50 CEST 2013: Build errors in folder: 'GP2Y0A41SK Voltage'
36 | Tue Oct 1 20:49:50 CEST 2013: Build errors in folder: 'SRF04 Centimeter'
37 | Tue Oct 1 20:50:27 CEST 2013: Build errors in folder: 'GP2Y0A21YK RawData'
38 | Tue Oct 1 20:50:27 CEST 2013: Build errors in folder: 'GP2Y0A21YK Centimeter'
39 | Tue Oct 1 20:50:27 CEST 2013: Build errors in folder: 'GP2Y0A21YK UnitTest'
40 | Tue Oct 1 20:50:27 CEST 2013: Build errors in folder: 'GP2Y0A21YK Voltage'
41 | Tue Oct 1 20:50:28 CEST 2013: Build errors in folder: 'GP2Y0A41SK RawData'
42 | Tue Oct 1 20:50:28 CEST 2013: Build errors in folder: 'GP2Y0A41SK Centimeter'
43 | Tue Oct 1 20:50:28 CEST 2013: Build errors in folder: 'GP2Y0A41SK Voltage'
44 | Tue Oct 1 20:50:28 CEST 2013: Build errors in folder: 'SRF04 Centimeter'
45 | Tue Oct 1 20:53:36 CEST 2013: Build errors in folder: 'GP2Y0A21YK UnitTest'
46 | Sun Nov 17 00:02:06 CET 2013: Build errors in folder: 'GP2Y0A21YK UnitTest'
47 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in folder: 'build'
48 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in folder: 'build'
49 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in folder: 'build'
50 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in folder: 'build'
51 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in header file(s)
52 | Sun Nov 17 00:03:27 CET 2013: Cppcheck errors in cpp file(s)
53 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in folder: 'build'
54 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in folder: 'build'
55 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in folder: 'build'
56 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in folder: 'build'
57 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in header file(s)
58 | Sun Nov 17 00:03:33 CET 2013: Cppcheck errors in cpp file(s)
59 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in folder: 'build'
60 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in folder: 'build'
61 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in folder: 'build'
62 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in folder: 'build'
63 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in header file(s)
64 | Sun Nov 17 00:05:28 CET 2013: Cppcheck errors in cpp file(s)
65 |
--------------------------------------------------------------------------------
/Documentation/html/search/search.css:
--------------------------------------------------------------------------------
1 | /*---------------- Search Box */
2 |
3 | #FSearchBox {
4 | float: left;
5 | }
6 |
7 | #MSearchBox {
8 | white-space : nowrap;
9 | position: absolute;
10 | float: none;
11 | display: inline;
12 | margin-top: 8px;
13 | right: 0px;
14 | width: 170px;
15 | z-index: 102;
16 | background-color: white;
17 | }
18 |
19 | #MSearchBox .left
20 | {
21 | display:block;
22 | position:absolute;
23 | left:10px;
24 | width:20px;
25 | height:19px;
26 | background:url('search_l.png') no-repeat;
27 | background-position:right;
28 | }
29 |
30 | #MSearchSelect {
31 | display:block;
32 | position:absolute;
33 | width:20px;
34 | height:19px;
35 | }
36 |
37 | .left #MSearchSelect {
38 | left:4px;
39 | }
40 |
41 | .right #MSearchSelect {
42 | right:5px;
43 | }
44 |
45 | #MSearchField {
46 | display:block;
47 | position:absolute;
48 | height:19px;
49 | background:url('search_m.png') repeat-x;
50 | border:none;
51 | width:116px;
52 | margin-left:20px;
53 | padding-left:4px;
54 | color: #909090;
55 | outline: none;
56 | font: 9pt Arial, Verdana, sans-serif;
57 | }
58 |
59 | #FSearchBox #MSearchField {
60 | margin-left:15px;
61 | }
62 |
63 | #MSearchBox .right {
64 | display:block;
65 | position:absolute;
66 | right:10px;
67 | top:0px;
68 | width:20px;
69 | height:19px;
70 | background:url('search_r.png') no-repeat;
71 | background-position:left;
72 | }
73 |
74 | #MSearchClose {
75 | display: none;
76 | position: absolute;
77 | top: 4px;
78 | background : none;
79 | border: none;
80 | margin: 0px 4px 0px 0px;
81 | padding: 0px 0px;
82 | outline: none;
83 | }
84 |
85 | .left #MSearchClose {
86 | left: 6px;
87 | }
88 |
89 | .right #MSearchClose {
90 | right: 2px;
91 | }
92 |
93 | .MSearchBoxActive #MSearchField {
94 | color: #000000;
95 | }
96 |
97 | /*---------------- Search filter selection */
98 |
99 | #MSearchSelectWindow {
100 | display: none;
101 | position: absolute;
102 | left: 0; top: 0;
103 | border: 1px solid #90A5CE;
104 | background-color: #F9FAFC;
105 | z-index: 1;
106 | padding-top: 4px;
107 | padding-bottom: 4px;
108 | -moz-border-radius: 4px;
109 | -webkit-border-top-left-radius: 4px;
110 | -webkit-border-top-right-radius: 4px;
111 | -webkit-border-bottom-left-radius: 4px;
112 | -webkit-border-bottom-right-radius: 4px;
113 | -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
114 | }
115 |
116 | .SelectItem {
117 | font: 8pt Arial, Verdana, sans-serif;
118 | padding-left: 2px;
119 | padding-right: 12px;
120 | border: 0px;
121 | }
122 |
123 | span.SelectionMark {
124 | margin-right: 4px;
125 | font-family: monospace;
126 | outline-style: none;
127 | text-decoration: none;
128 | }
129 |
130 | a.SelectItem {
131 | display: block;
132 | outline-style: none;
133 | color: #000000;
134 | text-decoration: none;
135 | padding-left: 6px;
136 | padding-right: 12px;
137 | }
138 |
139 | a.SelectItem:focus,
140 | a.SelectItem:active {
141 | color: #000000;
142 | outline-style: none;
143 | text-decoration: none;
144 | }
145 |
146 | a.SelectItem:hover {
147 | color: #FFFFFF;
148 | background-color: #3D578C;
149 | outline-style: none;
150 | text-decoration: none;
151 | cursor: pointer;
152 | display: block;
153 | }
154 |
155 | /*---------------- Search results window */
156 |
157 | iframe#MSearchResults {
158 | width: 60ex;
159 | height: 15em;
160 | }
161 |
162 | #MSearchResultsWindow {
163 | display: none;
164 | position: absolute;
165 | left: 0; top: 0;
166 | border: 1px solid #000;
167 | background-color: #EEF1F7;
168 | }
169 |
170 | /* ----------------------------------- */
171 |
172 |
173 | #SRIndex {
174 | clear:both;
175 | padding-bottom: 15px;
176 | }
177 |
178 | .SREntry {
179 | font-size: 10pt;
180 | padding-left: 1ex;
181 | }
182 |
183 | .SRPage .SREntry {
184 | font-size: 8pt;
185 | padding: 1px 5px;
186 | }
187 |
188 | body.SRPage {
189 | margin: 5px 2px;
190 | }
191 |
192 | .SRChildren {
193 | padding-left: 3ex; padding-bottom: .5em
194 | }
195 |
196 | .SRPage .SRChildren {
197 | display: none;
198 | }
199 |
200 | .SRSymbol {
201 | font-weight: bold;
202 | color: #425E97;
203 | font-family: Arial, Verdana, sans-serif;
204 | text-decoration: none;
205 | outline: none;
206 | }
207 |
208 | a.SRScope {
209 | display: block;
210 | color: #425E97;
211 | font-family: Arial, Verdana, sans-serif;
212 | text-decoration: none;
213 | outline: none;
214 | }
215 |
216 | a.SRSymbol:focus, a.SRSymbol:active,
217 | a.SRScope:focus, a.SRScope:active {
218 | text-decoration: underline;
219 | }
220 |
221 | span.SRScope {
222 | padding-left: 4px;
223 | }
224 |
225 | .SRPage .SRStatus {
226 | padding: 2px 5px;
227 | font-size: 8pt;
228 | font-style: italic;
229 | }
230 |
231 | .SRResult {
232 | display: none;
233 | }
234 |
235 | DIV.searchresults {
236 | margin-left: 10px;
237 | margin-right: 10px;
238 | }
239 |
--------------------------------------------------------------------------------
/Documentation/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Arduino library for distance sensors
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
66 |
76 |
79 |
80 |
81 |
86 |
87 |
88 |
89 |
92 |
93 |
94 |
98 |
99 |
100 | Introduction
101 |
The current version provides a unified interface for the following sensors:
102 |
103 | -
104 |
SRF04 & SRF05 Ultrasonic Ranger
105 |
106 |
107 | -
108 |
Sharp GP2Y0A21YK IR Distance sensors
109 |
110 |
111 | -
112 | Sharp GP2Y0A41SK IR Distance sensors
113 |
114 |
115 |
116 |
117 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Documentation/html/doxygeninfo_8h_source.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: /home/jeroen/.usbdisk/sdb2/4-VersionControlled/0-ArduinoLibraries/DistanceSensor-library/DistanceSensor/doxygeninfo.h Source File
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
70 |
71 |
81 |
84 |
85 |
86 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
103 |
106 |
107 |
108 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/Documentation/html/inherits.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class Hierarchy
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
110 |
111 |
113 | |
114 |
115 |
116 |
117 |
118 |
125 |
126 |
127 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_sensor-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Member List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
108 |
This is the complete list of members for DistanceSensor, including all inherited members.
109 |
115 |
116 |
117 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Documentation/html/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class Index
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
119 |
120 |
121 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/Documentation/html/annotated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
Here are the classes, structs, unions and interfaces with brief descriptions:
117 |
118 |
119 |
120 |
127 |
128 |
129 |
--------------------------------------------------------------------------------
/Documentation/html/files.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: File List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
70 |
71 |
81 |
84 |
85 |
86 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
103 |
104 |
Here is a list of all documented files with brief descriptions:
115 |
116 |
117 |
118 |
125 |
126 |
127 |
--------------------------------------------------------------------------------
/Documentation/html/hierarchy.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class Hierarchy
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
108 |
Go to the graphical class hierarchy
109 | This inheritance list is sorted roughly, but not completely, alphabetically:
110 |
[detail level 123]
118 |
119 |
120 |
121 |
122 |
129 |
130 |
131 |
--------------------------------------------------------------------------------
/Documentation/html/functions_func.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class Members - Functions
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
79 |
80 |
90 |
93 |
94 |
95 |
100 |
101 |
102 |
103 |
106 |
107 |
108 |
158 |
159 |
160 |
167 |
168 |
169 |
--------------------------------------------------------------------------------
/Documentation/html/functions.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Class Members
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
79 |
80 |
90 |
93 |
94 |
95 |
100 |
101 |
102 |
103 |
106 |
107 |
108 |
109 |
Here is a list of all documented class members with links to the class documentation for each member:
157 |
158 |
159 |
160 |
167 |
168 |
169 |
--------------------------------------------------------------------------------
/Documentation/html/class_analog_distance_sensor-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Member List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
108 |
This is the complete list of members for AnalogDistanceSensor, including all inherited members.
109 |
122 |
123 |
124 |
131 |
132 |
133 |
--------------------------------------------------------------------------------
/Documentation/html/dir_6dde59ad95b5166d5e65261f32edc45c.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: /home/jeroen/.usbdisk/sdb2/4-VersionControlled/0-ArduinoLibraries/DistanceSensor-library/DistanceSensor/ Directory Reference
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
66 |
76 |
79 |
80 |
81 |
86 |
87 |
88 |
89 |
92 |
93 |
94 |
98 |
99 |
101 |
106 |
107 |
108 | Files |
109 | | file | AnalogDistanceSensor.cpp |
110 | | file | AnalogDistanceSensor.h [code] |
111 | | file | DistanceGP2Y0A21YK.cpp |
112 | | file | DistanceGP2Y0A21YK.h [code] |
113 | | file | DistanceGP2Y0A41SK.cpp |
114 | | file | DistanceGP2Y0A41SK.h [code] |
115 | | file | DistanceSensor.cpp |
116 | | file | DistanceSensor.h [code] |
117 | | file | DistanceSRF04.cpp |
118 | | file | DistanceSRF04.h [code] |
119 | | file | UltrasonicDistanceSensor.cpp |
120 | | file | UltrasonicDistanceSensor.h [code] |
121 |
122 |
123 |
124 |
125 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/Documentation/html/class_ultrasonic_distance_sensor-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Member List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
108 |
This is the complete list of members for UltrasonicDistanceSensor, including all inherited members.
109 |
122 |
123 |
124 |
131 |
132 |
133 |
--------------------------------------------------------------------------------
/Documentation/html/class_distance_s_r_f04-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ArduinoDistanceSensorLibrary: Member List
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | |
30 | ArduinoDistanceSensorLibrary
31 |
32 | |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
65 |
73 |
74 |
84 |
87 |
88 |
89 |
94 |
95 |
96 |
97 |
100 |
101 |
102 |
106 |
107 |
108 |
This is the complete list of members for DistanceSRF04, including all inherited members.
109 |
123 |
124 |
125 |
132 |
133 |
134 |
--------------------------------------------------------------------------------