You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/wireshark.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
title: Debugging CRTP using Wireshark
3
3
page_id: wireshark_debugging
4
+
redirect: /wireshark/wireshark/
4
5
---
5
6
6
7
Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education. It makes analyzing what is going on with packet based protocols easier.
Copy file name to clipboardExpand all lines: docs/installation/install.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,15 +42,15 @@ you can skip this section.
42
42
43
43
* To deactivate the virtualenv when you are done using it `deactivate`
44
44
45
-
#### Install cflib dependencies
46
-
Install dependencies required by the lib: `pip install -r requirements.txt`. If you are planning on developing on the lib you should also run: `pip install -r requirements-dev.txt`.
47
-
48
-
To verify the installation, connect the crazyflie and run an example: `python3 examples/logging/basiclog.py`
49
-
50
-
### Pre commit hooks
45
+
### Pre commit hooks (Ubuntu)
51
46
If you want some extra help with keeping to the mandated python coding style you can install hooks that verify your style at commit time. This is done by running:
52
47
```
48
+
$ pip3 install pre-commit
49
+
```
50
+
go to crazyflie-lib-python root folder and run
51
+
```
53
52
$ pre-commit install
53
+
$ pre-commit run --all-files
54
54
```
55
55
This will run the lint checkers defined in `.pre-commit-config-yaml` on your proposed changes and alert you if you need to change anything.
Currently only *radio* and *debug* interfaces are used but there\'s
38
-
ideas for more like *udp*, *serial*, *usb*, etc\...Here are some
39
-
examples:
37
+
Currently we have *radio*, *serial*, *usb*, *debug*, *udp* interfaces are used. Here are some examples:
40
38
41
39
-_radio://0/10/2M : Radio interface, USB dongle number 0, radio channel 10 and radio
42
40
speed 2 Mbit/s: radio://0/10/2M
43
41
-_debug://0/1_ : Debug interface, id 0, channel 1
42
+
-_usb://0_ : USB cable to microusb port, id 0
43
+
-_serial://ttyAMA0_ : Serial port, id ttyAMA0
44
+
-_tcp://aideck-AABBCCDD.local:5000_ : TCP network connection, Name: aideck-AABBCCDD.local, port 5000
44
45
45
46
### Variables and logging
46
47
@@ -76,12 +77,14 @@ The library supports reading and writing parameters at run-time to the
76
77
firmware. This is intended to be used for data that is not continuously
77
78
being changed by the firmware, like setting regulation parameters and
78
79
reading out if the power-on self-tests passed. Parameters should only
79
-
change in the firmware when being set from the host or during start-up.
80
+
change in the firmware when being set from the host (cfclient or a cflib script) or during start-up.
81
+
80
82
The library doesn\'t continuously update the parameter values, this
81
83
should only be done once after connecting. After each write to a
82
84
parameter the firmware will send back the updated value and this will be
83
-
forwarded to callbacks registered for reading this parameter. The
84
-
parameters should be used in the following way:
85
+
forwarded to callbacks registered for reading this parameter.
86
+
87
+
The parameters should be used in the following way:
85
88
86
89
- Register parameter updated callbacks at any time in your application
87
90
- Connect to your Crazyflie (this will download the parameter TOC)
@@ -92,6 +95,8 @@ parameters should be used in the following way:
92
95
- For each write all the callbacks registered for this parameter will
93
96
be called back
94
97
98
+
There is an exception for experimental support to change the parameter from within [firmware's app layer](https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/userguides/app_layer/#internal-log-and-param-system). However do mind that this functionality is not according to the design of the parameters framework so that the host might not be updated correctly on the parameter change.
99
+
95
100
### Variable and parameter names
96
101
97
102
All names of parameters and log variables use the same structure:
Check out the [automated API documentation](/docs/api/cflib/crazyflie/commander.md) for the Crazyflie cflib's commander frame work to find out what other functions you can use.
265
+
249
266
## Parameters
250
267
251
268
The parameter framework is used to read and set parameters. This
@@ -301,12 +318,12 @@ It is also possible to get the current value of a parameter (when connected) wit
301
318
value = get_value(complete_name)
302
319
```
303
320
304
-
Note 1: If you call `set_value()` and then directly call `get_value()` for a parameter, you might not read back the new
321
+
>**Note 1** If you call `set_value()` and then directly call `get_value()` for a parameter, you might not read back the new
305
322
value, but get the old one instead. The process is asynchronous and `get_value()` will not return the new value until
306
323
the parameter value has propagated to the Crazyflie and back. Use the callback method if you need to be certain
307
324
that you get the correct value after an update.
308
325
309
-
Note 2: `get_value()` and `set_value()` can not be called from callbacks until the Crazyflie is fully connected.
326
+
>**Note 2**: `get_value()` and `set_value()` can not be called from callbacks until the Crazyflie is fully connected.
310
327
Most notably they can not be called from the `connected` callback as the parameter values have not been
311
328
downloaded yet. Use the `fully_connected` callback to make sure the system is ready for parameter use. It is OK to
312
329
call `get_value()` and `set_value()` from the `fully_connected` callback.
@@ -491,7 +508,7 @@ and SyncCrazyflie instances. To get the log values, iterate the instance.
491
508
492
509
### MotionCommander
493
510
494
-
The MotionCommander is intended to simplify basic autonomous flight. The Crazyflie takes off
511
+
The MotionCommander class is intended to simplify basic autonomous flight, where the motion control is done from the host computer. The Crazyflie takes off
495
512
when entering the "with" section, and lands when exiting. It has functions for basic
496
513
movements that are blocking until the motion is finished.
497
514
@@ -512,13 +529,13 @@ system, all positions are relative. It is mainly intended to be used with a Flow
512
529
513
530
### PositionHlCommander
514
531
515
-
The PositionHlCommander is intended to simplify basic autonomous flight. The Crazyflie takes off
532
+
The PositionHlCommander is intended to simplify basic autonomous flight, where all the high level commands exists inside the Crazyflie firmware. The Crazyflie takes off
516
533
when entering the "with" section, and lands when exiting. It has functions for basic
517
534
movements that are blocking until the motion is finished.
518
535
519
536
The PositionHlCommander uses the high level commander in the Crazyflie and is
520
-
based on a global coordinate system and absolute positoinins. It is inteneded
521
-
to be used with a positioning system such as LPS, the lighthouse or a mocap system.
537
+
based on a global coordinate system and absolute positions. It is intended
538
+
to be used with a positioning system such as Loco, the lighthouse or a mocap system.
0 commit comments