Skip to content

Commit 1007cc4

Browse files
committed
Moved to MIT license
1 parent 4b4b1cf commit 1007cc4

15 files changed

+43
-1100
lines changed

DistanceSensor/AnalogDistanceSensor.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
// AnalogDistanceSensor.h - Arduino library from Analog Distance sensors
2-
// Copyright 2011-2012 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// For more information.. see AnalogDistanceSensor.h
4-
//
5-
// This library is free software; you can redistribute it and/or
6-
// modify it under the terms of the GNU Lesser General Public
7-
// License as published by the Free Software Foundation; either
8-
// version 2.1 of the License, or (at your option) any later version.
9-
//
10-
// This library is distributed in the hope that it will be useful,
11-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
// Lesser General Public License for more details.
14-
//
15-
// You should have received a copy of the GNU Lesser General Public
16-
// License along with this library; if not, write to the Free Software
17-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
183

194
#include <AnalogDistanceSensor.h>
205

DistanceSensor/AnalogDistanceSensor.h

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
1-
//
2-
// AnalogDistanceSensor.h - Arduino library for Analog Distance sensors
3-
// Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com)
4-
// More info: http://www.robot-electronics.co.uk/files/SRF04.pde
5-
//
6-
// Version History:
7-
// Version 0.1:
8-
//
9-
// Roadmap:
10-
// Version 0.2: ??
11-
//
12-
// This library is free software; you can redistribute it and/or
13-
// modify it under the terms of the GNU Lesser General Public
14-
// License as published by the Free Software Foundation; either
15-
// version 2.1 of the License, or (at your option) any later version.
16-
//
17-
// This library is distributed in the hope that it will be useful,
18-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20-
// Lesser General Public License for more details.
21-
//
22-
// You should have received a copy of the GNU Lesser General Public
23-
// License along with this library; if not, write to the Free Software
24-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25-
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
263
#ifndef AnalogDistanceSensor_h
274
#define AnalogDistanceSensor_h
285

DistanceSensor/DistanceGP2Y0A21YK.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
// DistanceGP2Y0A21YK.h - Arduino library for retrieving data from the analog GP2Y0A21YK IR Distance sensor
2-
// Copyright 2011-2012 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// For more information: variable declaration, changelog,... see DistanceGP2Y0A21YK.h
4-
//
5-
// This library is free software; you can redistribute it and/or
6-
// modify it under the terms of the GNU Lesser General Public
7-
// License as published by the Free Software Foundation; either
8-
// version 2.1 of the License, or (at your option) any later version.
9-
//
10-
// This library is distributed in the hope that it will be useful,
11-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
// Lesser General Public License for more details.
14-
//
15-
// You should have received a copy of the GNU Lesser General Public
16-
// License along with this library; if not, write to the Free Software
17-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
183

194
#include <DistanceGP2Y0A21YK.h>
205

DistanceSensor/DistanceGP2Y0A21YK.h

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
// DistanceGP2Y0A21YK.h - Arduino library for retrieving data from the analog GP2Y0A21YK IR Distance sensor
2-
// Copyright 2011-2012 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// Datasheet: http://www.sparkfun.com/datasheets/Components/GP2Y0A21YK.pdf
4-
//
5-
// Version History:
6-
// Version 0.1: First version using "AnalogDistanceSensor" lib
7-
//
8-
// This library is free software; you can redistribute it and/or
9-
// modify it under the terms of the GNU Lesser General Public
10-
// License as published by the Free Software Foundation; either
11-
// version 2.1 of the License, or (at your option) any later version.
12-
//
13-
// This library is distributed in the hope that it will be useful,
14-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16-
// Lesser General Public License for more details.
17-
//
18-
// You should have received a copy of the GNU Lesser General Public
19-
// License along with this library; if not, write to the Free Software
20-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
213

224
#ifndef DistanceGP2Y0A21YK_h
235
#define DistanceGP2Y0A21YK_h

DistanceSensor/DistanceGP2Y0A41SK.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
// DistanceGP2Y0A41SK.h - Arduino library for retrieving data from the analog GP2Y IR Distance sensor
2-
// Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// For more information: variable declaration, changelog,... see DistanceGP2Y0A41SK.h
4-
//
5-
// This library is free software; you can redistribute it and/or
6-
// modify it under the terms of the GNU Lesser General Public
7-
// License as published by the Free Software Foundation; either
8-
// version 2.1 of the License, or (at your option) any later version.
9-
//
10-
// This library is distributed in the hope that it will be useful,
11-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
// Lesser General Public License for more details.
14-
//
15-
// You should have received a copy of the GNU Lesser General Public
16-
// License along with this library; if not, write to the Free Software
17-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
183

194
#include <Arduino.h>
205
#include <DistanceGP2Y0A41SK.h>

DistanceSensor/DistanceGP2Y0A41SK.h

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/************************************************************************************************************
2-
* DistanceGP2Y0A41SK.h - Arduino library for retrieving data from the analog GP2Y IR Distance sensor *
3-
* Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com) *
4-
* Datasheet: http://www.sparkfun.com/datasheets/Components/GP2Y.pdf *
5-
************************************************************************************************************
6-
* Version History: *
7-
* Version 0.1: getDistanceRaw, getDistanceVolt, getDistanceCentimeter (with LUT based on datasheet) *
8-
* Version 0.2: Correct LUT for 5V ADC (based on measurements) *
9-
* Version 0.3: LUTs moved to flash to save 512 Bytes of RAM *
10-
* Roadmap: *
11-
* Version 0.4: Correct LUT for 3.3V ADC (based on measurements) *
12-
* Version 0.5: Take sensor height above the ground into account *
13-
* Version 0.6: Compare different sensors, calculate replacement LUT (at runtime) *
14-
* based on calibration points *
15-
************************************************************************************************************
16-
* This library is free software; you can redistribute it and/or *
17-
* modify it under the terms of the GNU Lesser General Public *
18-
* License as published by the Free Software Foundation; either *
19-
* version 2.1 of the License, or (at your option) any later version. *
20-
* *
21-
* This library is distributed in the hope that it will be useful, *
22-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
23-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
24-
* Lesser General Public License for more details. *
25-
* *
26-
* You should have received a copy of the GNU Lesser General Public *
27-
* License along with this library; if not, write to the Free Software *
28-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
29-
***********************************************************************************************************/
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
303

314
#ifndef DistanceGP2Y0A41SK_h
325
#define DistanceGP2Y0A41SK_h

DistanceSensor/DistanceSRF04.cpp

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
1-
/***************************************************************************************************
2-
* DistanceSRF04.h - Arduino library for retrieving data from the SRF04 Ultrasonic Distance sensor *
3-
* Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com) *
4-
* For more information: variable declaration, changelog,... see DistanceSRF04.h *
5-
***************************************************************************************************
6-
* This library is free software; you can redistribute it and/or *
7-
* modify it under the terms of the GNU Lesser General Public *
8-
* License as published by the Free Software Foundation; either *
9-
* version 2.1 of the License, or (at your option) any later version. *
10-
* *
11-
* This library is distributed in the hope that it will be useful, *
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14-
* Lesser General Public License for more details. *
15-
* *
16-
* You should have received a copy of the GNU Lesser General Public *
17-
* License along with this library; if not, write to the Free Software *
18-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19-
**************************************************************************************************/
20-
21-
/// <summary>
22-
/// DistanceSRF04.cpp - Library for retrieving data from the GP2Y0A21YK IR Distance sensor.
23-
/// For more information: variable declaration, changelog,... see DistanceSRF04.h
24-
/// </summary>
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
253

264
#include <Arduino.h>
275
#include <DistanceSRF04.h>

DistanceSensor/DistanceSRF04.h

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
1-
/***************************************************************************************************
2-
* DistanceSRF04.h - Arduino library for retrieving data from the SRF04 Ultrasonic Distance sensor *
3-
* Copyright 2011-2012 Jeroen Doggen (jeroendoggen@gmail.com) *
4-
* More info: http://www.robot-electronics.co.uk/files/SRF04.pde *
5-
***************************************************************************************************
6-
* Version History: *
7-
* Version 0.1: getDistanceCentimeter, blocking *
8-
* *
9-
* Roadmap: *
10-
* Version 0.2: add filtering (low pass filter?) *
11-
* Version 0.3: getDistanceCentimeter, interrupt based * *
12-
***************************************************************************************************
13-
* This library is free software; you can redistribute it and/or *
14-
* modify it under the terms of the GNU Lesser General Public *
15-
* License as published by the Free Software Foundation; either *
16-
* version 2.1 of the License, or (at your option) any later version. *
17-
* *
18-
* This library is distributed in the hope that it will be useful, *
19-
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
21-
* Lesser General Public License for more details. *
22-
* *
23-
* You should have received a copy of the GNU Lesser General Public *
24-
* License along with this library; if not, write to the Free Software *
25-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
26-
**************************************************************************************************/
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
273

284
#ifndef DistanceSRF04_h
295
#define DistanceSRF04_h

DistanceSensor/DistanceSensor.cpp

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
1-
// DistanceSensor.h - Arduino library for retrieving data from Distance sensors
2-
// Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// More info: http://www.robot-electronics.co.uk/files/SRF04.pde
4-
//
5-
// Version History:
6-
// Version 0.1: getDistanceCentimeter, blocking
7-
//
8-
// Roadmap:
9-
// Version 0.2: add filtering (low pass filter?)
10-
// Version 0.3: getDistanceCentimeter, interrupt based
11-
//
12-
// This library is free software; you can redistribute it and/or
13-
// modify it under the terms of the GNU Lesser General Public
14-
// License as published by the Free Software Foundation; either
15-
// version 2.1 of the License, or (at your option) any later version.
16-
//
17-
// This library is distributed in the hope that it will be useful,
18-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20-
// Lesser General Public License for more details.
21-
//
22-
// You should have received a copy of the GNU Lesser General Public
23-
// License along with this library; if not, write to the Free Software
24-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
253

264
#include <DistanceSensor.h>
275

DistanceSensor/DistanceSensor.h

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
1-
// DistanceSensor.h - Arduino library for retrieving data from the Distance sensors
2-
// Copyright 2011 Jeroen Doggen (jeroendoggen@gmail.com)
3-
// More info: http://www.robot-electronics.co.uk/files/SRF04.pde
4-
//
5-
// Version History:
6-
// Version 0.1:
7-
//
8-
// Roadmap:
9-
// Version 0.2: ??
10-
//
11-
// This library is free software; you can redistribute it and/or
12-
// modify it under the terms of the GNU Lesser General Public
13-
// License as published by the Free Software Foundation; either
14-
// version 2.1 of the License, or (at your option) any later version.
15-
//
16-
// This library is distributed in the hope that it will be useful,
17-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19-
// Lesser General Public License for more details.
20-
//
21-
// You should have received a copy of the GNU Lesser General Public
22-
// License along with this library; if not, write to the Free Software
23-
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1+
// Arduino library for distance sensors
2+
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com
243

254
#ifndef DistanceSensor_h
265
#define DistanceSensor_h

0 commit comments

Comments
 (0)