mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 10:38:28 -04:00
uncrustify libraries/AP_RangeFinder/AP_RangeFinder_SharpGP2Y.cpp
This commit is contained in:
parent
605b3b6de2
commit
f8a27802f1
@ -1,29 +1,29 @@
|
|||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 3; indent-tabs-mode: t -*-
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 3; indent-tabs-mode: t -*-
|
||||||
/*
|
/*
|
||||||
AP_RangeFinder_SharpGP2Y.cpp - Arduino Library for Sharpe GP2Y0A02YK0F
|
* AP_RangeFinder_SharpGP2Y.cpp - Arduino Library for Sharpe GP2Y0A02YK0F
|
||||||
infrared proximity sensor
|
* infrared proximity sensor
|
||||||
Code by Jose Julio and Randy Mackay. DIYDrones.com
|
* Code by Jose Julio and Randy Mackay. DIYDrones.com
|
||||||
|
*
|
||||||
This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
version 2.1 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
Sensor should be conected to one of the analog ports
|
* Sensor should be conected to one of the analog ports
|
||||||
|
*
|
||||||
Sparkfun URL: http://www.sparkfun.com/products/8958
|
* Sparkfun URL: http://www.sparkfun.com/products/8958
|
||||||
datasheet: http://www.sparkfun.com/datasheets/Sensors/Infrared/gp2y0a02yk_e.pdf
|
* datasheet: http://www.sparkfun.com/datasheets/Sensors/Infrared/gp2y0a02yk_e.pdf
|
||||||
|
*
|
||||||
Variables:
|
* Variables:
|
||||||
int raw_value : raw value from the sensor
|
* int raw_value : raw value from the sensor
|
||||||
int distance : distance in cm
|
* int distance : distance in cm
|
||||||
int max_distance : maximum measurable distance (in cm)
|
* int max_distance : maximum measurable distance (in cm)
|
||||||
int min_distance : minimum measurable distance (in cm)
|
* int min_distance : minimum measurable distance (in cm)
|
||||||
|
*
|
||||||
Methods:
|
* Methods:
|
||||||
read() : read value from analog port
|
* read() : read value from analog port
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// AVR LibC Includes
|
// AVR LibC Includes
|
||||||
#if defined(ARDUINO) && ARDUINO >= 100
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
|
Loading…
Reference in New Issue
Block a user