diff --git a/.eslintrc b/.eslintrc
index 79bfef3..d946b4c 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,8 +1,8 @@
{
"extends": "airbnb-base",
"rules": {
- "indent": ["error", 4],
- "no-unused-expressions": ["error", { "allowTernary": true }],
+ "indent": [2, 4],
+ "no-unused-expressions": [2, { "allowTernary": true }],
// specify the maximum length of a line in your program
// http://eslint.org/docs/rules/max-len
"max-len": [2, 150, 2, {
diff --git a/README.md b/README.md
index dd44561..b31a581 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,9 @@ To fly with the keyboard follow the below instructions.
**d** | Yaw right
**t** | Toggle takeoff & land
**f** | Flattrim
+**l** | Flash the headlights (if equipped)
+**k** | Blink the headlights (if equipped)
+**o** | Oscillate the headlights (if equipped)
**Escape** | Emergency land
## Tests
@@ -81,6 +84,10 @@ To run the test runner execute `npm test`.
## Changelog
+### 1.2.0
+- Added support for animating the headlights on equipped drones
+- Fixed a bug with saturated Bluetooth environments
+
### 1.1.0
- Added support for Mambo, Blaze and New Z minidrones
- Added support for setting max tilt, altitude, vertical speed, rotation speed and defining a drone type to connect to
diff --git a/docs/Drone.html b/docs/Drone.html
index 27d5b2a..f2d2c9f 100644
--- a/docs/Drone.html
+++ b/docs/Drone.html
@@ -28,7 +28,7 @@
Class: Drone
- Drone
+ Drone(options)
Drone Class
@@ -47,7 +47,9 @@
Drone
Constructor
+
new Drone(options)
+
@@ -386,6 +388,8 @@ Fires:
+
+
@@ -395,7 +399,9 @@ Fires:
-
+
+
+
@@ -409,7 +415,9 @@ Methods
+
animate(animation) → {undefined}
+
@@ -510,7 +518,7 @@ Parameters:
Source:
@@ -554,12 +562,169 @@ Returns:
+
+
+
+
+
+
+
+
+ animateHeadlights(animation) → {undefined}
+
+
+
+
+
+
+
+ Sets the drone's headlight animation
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ animation |
+
+
+
+
+
+string
+
+
+ |
+
+
+
+
+
+ The desired light state, can be 'flash', 'blink', or 'oscillate' |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+ -
+ Type
+
+ -
+
+undefined
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
connect() → {undefined}
+
@@ -610,7 +775,7 @@ connectSource:
@@ -654,12 +819,16 @@ Returns:
+
+
+
emergency() → {undefined}
+
@@ -710,7 +879,7 @@ emergencySource:
@@ -754,12 +923,16 @@ Returns:
+
+
+
eventLoop() → {undefined}
+
@@ -810,7 +983,7 @@ eventLoopSource:
@@ -854,12 +1027,16 @@ Returns:
+
+
+
getBatteryLevel() → {integer}
+
@@ -910,7 +1087,7 @@ getBat
Source:
@@ -958,12 +1135,16 @@ Returns:
+
+
+
+
@@ -1014,7 +1195,7 @@