Skip to content

Commit 7286182

Browse files
committed
update libraries R-Z
1 parent 9abe150 commit 7286182

File tree

105 files changed

+3354
-1013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3354
-1013
lines changed

libraries/Radar/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2013-2020 Rob Tillaart
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 60 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
//
22
// FILE: radarDemo.ino
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.00
5-
// PURPOSE:
6-
// DATE:
7-
// URL:
8-
//
9-
// Released to the public domain
10-
//
4+
// VERSION: 0.1.1
5+
// PURPOSE: demo of the radar library
6+
// DATE: 29-03-2015
7+
// URL: https://github.com/RobTillaart/RADAR
118

129
#include "radar.h"
1310

14-
uint32_t del = 250;
11+
uint32_t del = 150;
1512

1613
RADAR radar(10, 11);
1714

@@ -22,51 +19,89 @@ void setup()
2219
Serial.println(RADAR_LIB_VERSION);
2320
Serial.println();
2421

22+
test1();
23+
test2();
24+
test3();
25+
test4();
26+
test5();
27+
test6();
28+
test7();
29+
30+
gohome();
31+
Serial.println();
32+
Serial.print(millis());
33+
Serial.println("\tdone...");
34+
}
35+
36+
void loop()
37+
{
38+
}
39+
40+
void test1()
41+
{
2542
Serial.print(millis());
2643
Serial.println("\t1. home position");
2744
radar.setHomePosition(0, 0);
2845
radar.gotoHomePosition();
2946
wait();
47+
}
3048

49+
void test2()
50+
{
3151
Serial.print(millis());
3252
Serial.println("\t2. gotoPan 20");
3353
radar.gotoPan(20);
3454
wait();
3555
Serial.println();
56+
}
3657

58+
void test3()
59+
{
3760
Serial.print(millis());
3861
Serial.println("\t3. gotoTilt 60");
3962
radar.gotoTilt(60);
4063
wait();
4164
Serial.println();
65+
}
4266

67+
void test4()
68+
{
4369
Serial.print(millis());
4470
Serial.println("\t4. gotoPanTilt 60 20");
4571
radar.gotoPanTilt(60, 20);
4672
wait();
4773
Serial.println();
74+
}
4875

76+
void test5()
77+
{
4978
Serial.print(millis());
5079
Serial.println("\t5. home position");
5180
radar.gotoHomePosition();
5281
wait();
5382
Serial.println();
83+
}
5484

85+
void test6()
86+
{
5587
Serial.print(millis());
5688
Serial.println("\t6. setPosition");
5789
for (int i = 0; i < 10; i++)
5890
{
5991
radar.setPosition(i, random(90), random(90));
6092
}
6193
Serial.println();
94+
}
6295

96+
void test7()
97+
{
6398
Serial.print(millis());
6499
Serial.println("\t7. gotoPosition");
65100
for (int i = 0; i < 10; i++)
66101
{
67102
radar.gotoPosition(i);
68-
int p, t;
69-
radar.getPosition(i, &p, &t);
103+
int16_t p, t;
104+
radar.getPosition(i, p, t);
70105
Serial.print(millis());
71106
Serial.print("\t");
72107
Serial.print(i);
@@ -78,32 +113,34 @@ void setup()
78113
wait();
79114
Serial.println();
80115
}
116+
}
117+
118+
void gohome()
119+
{
81120
Serial.print(millis());
82-
Serial.println("\t8. home position");
121+
Serial.println("\tgo home position");
83122
radar.gotoHomePosition();
84123
wait();
85124
Serial.println();
86-
87-
Serial.println();
88-
Serial.print(millis());
89-
Serial.println("\tdone...");
90-
}
91-
92-
void loop()
93-
{
94125
}
95126

96127
void wait()
97128
{
129+
Serial.println("\nTIME\t\tPAN\tTILT");
98130
do
99131
{
100-
int p = radar.getPan();
101-
int t = radar.getTilt();
102132
Serial.print(millis());
103133
Serial.print("\t*\t");
104-
Serial.print(p);
134+
Serial.print(radar.getPan());
105135
Serial.print("\t");
106-
Serial.println(t);
136+
Serial.println(radar.getTilt());
107137
delay(del);
108138
} while (radar.isMoving());
139+
Serial.print(millis());
140+
Serial.print("\t*\t");
141+
Serial.print(radar.getPan());
142+
Serial.print("\t");
143+
Serial.println(radar.getTilt());
109144
}
145+
146+
// -- END OF FILE --

libraries/Radar/library.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "Radar",
3-
"keywords": "Pan,tilt,radar",
4-
"description": "Experimental library for a pan tilt radar.",
2+
"name": "RADAR",
3+
"keywords": "Pan,tilt,radar,ping",
4+
"description": "Arduino library for a pan tilt radar. Experimental",
55
"authors":
66
[
77
{
@@ -13,12 +13,9 @@
1313
"repository":
1414
{
1515
"type": "git",
16-
"url": "https://github.com/RobTillaart/Arduino.git"
16+
"url": "https://github.com/RobTillaart/RADAR"
1717
},
18-
"version":"0.1.1",
18+
"version":"0.1.3",
1919
"frameworks": "arduino",
20-
"platforms": "*",
21-
"export": {
22-
"include": "libraries/Radar"
23-
}
20+
"platforms": "*"
2421
}

libraries/Radar/library.properties

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name=Radar
2-
version=0.1.1
1+
name=RADAR
2+
version=0.1.3
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
5-
sentence=Experimental library for a pan tilt radar.
6-
paragraph=
7-
category=Device
8-
url=https://github.com/RobTillaart/Arduino/tree/master/libraries/
9-
architectures=*
5+
sentence=Arduino library for a pan tilt radar.
6+
paragraph=Experimental
7+
category=Uncategorized
8+
url=https://github.com/RobTillaart/RADAR
9+
architectures=*
10+
includes=radar.h
11+
depends=

0 commit comments

Comments
 (0)