File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "telloIP" : " 192.168.10.1" ,
3
+ "telloPort" : 8889 ,
4
+ "webserver" : 3000 ,
5
+ "telloStatePort" : 8890 ,
6
+ "telloVideoPort" : 8890 ,
7
+ "enhancedLogging" : false
8
+ }
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
} from "./cmds/mod.ts" ;
16
16
import { dgram } from "./deps.ts" ;
17
17
import { decode , encode } from "./lib/text.ts" ;
18
+ import defaultOptions from "./defaultOptions.json" assert { type : "json" } ;
18
19
19
20
export default class DroneController {
20
21
public takeOff = takeOff ;
@@ -40,8 +41,8 @@ export default class DroneController {
40
41
private resolveQueue : ( ( ) => void ) [ ] = [ ] ;
41
42
private allowWait = false ;
42
43
43
- constructor ( options : Options ) {
44
- this . options = options ;
44
+ constructor ( options ? : Options ) {
45
+ this . options = options || defaultOptions ;
45
46
this . state = "" ;
46
47
}
47
48
You can’t perform that action at this time.
0 commit comments