@@ -5,42 +5,40 @@ export const ConnectionType = {
55 Network : "network" ,
66}
77
8- const droneConnectionSlice = createSlice ( {
9- name : "droneConnection" ,
10- initialState : {
11- // drone connection status
12- connecting : false ,
13- connected : false ,
14- connection_modal : false ,
15- connection_status : {
16- message : "" ,
17- progress : 0 ,
18- } ,
8+ const initialState = {
9+ // drone connection status
10+ connecting : false ,
11+ connected : false ,
12+ connection_modal : false ,
13+ connection_status : {
14+ message : "" ,
15+ progress : 0 ,
16+ } ,
1917
20- // aircraft type
21- aircraft_type : 0 ,
18+ // aircraft type
19+ aircraft_type : 0 ,
2220
23- // drone connection parameters
24- wireless : true , // local
25- baudrate : "9600" , // local
26- connection_type : ConnectionType . Serial , // local
21+ // drone connection parameters
22+ wireless : true , // local
23+ baudrate : "9600" , // local
24+ connection_type : ConnectionType . Serial , // local
2725
28- // com ports
29- fetching_com_ports : false ,
30- com_ports : [ ] ,
31- selected_com_ports : null ,
26+ // com ports
27+ fetching_com_ports : false ,
28+ com_ports : [ ] ,
29+ selected_com_ports : null ,
3230
33- // network parameters
34- network_type : "tcp" , // local
35- ip : "127.0.0.1" , // local
36- port : "5760" , // local
31+ // network parameters
32+ network_type : "tcp" , // local
33+ ip : "127.0.0.1" , // local
34+ port : "5760" , // local
3735
38- forwardingAddress : "" , // local
39- isForwarding : false , // local
40- forwardingAddressModalOpened : false ,
36+ forwardingAddress : "" , // local
37+ isForwarding : false , // local
38+ forwardingAddressModalOpened : false ,
4139
42- currentPage : "dashboard" ,
43- outsideVisibility : false , // local
40+ currentPage : "dashboard" ,
41+ outsideVisibility : false , // local
4442
4543 videoSource : null ,
4644 videoMaximized : false ,
0 commit comments