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
- Make mask2 optional in the request
- Move battery SoC to mask1
- Add the FOC Id to mask2
- Fix checking of mask1 instead of mask2 when adding mask2 fields
- Documentation improvements
Copy file name to clipboardExpand all lines: doc/commands/REALTIME_DATA.md
+57-58Lines changed: 57 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
**ID**: 33
4
4
5
-
Provides selectable realtime data from the package to the client. This command allows the client to request specific data fields using a bitmask, and supports encoding floats as both float16 and float32.
5
+
Provides selectable realtime data from the package to the client. This command allows the client to request specific data fields using a bitmask, and supports encoding floats as both [float16](float16.md) and float32.
| 0 | 1 |`control_flags`|Yes |Control flags specifying format options:<br> `0x1`: Use float32 instead of [float16](float16.md) for numeric values |
12
+
| 1 | 4 |`mask1`|Yes |Bitmask specifying which data fields to include (bits 0-31). See **Mask1** table below. |
13
+
| 5 | 4 |`mask2`|No |Bitmask specifying which data fields to include (bits 32-63). See **Mask2** table below. |
14
14
15
15
## Response
16
16
@@ -24,56 +24,57 @@ The response contains the data fields that were requested via the bitmasks. The
24
24
| 9 | 4 |`time`| Timestamp of the data in ticks, as `uint32`. To convert to seconds, use `tick_rate` from the [INFO](INFO.md) command. |
25
25
| 13 | N |`data_fields`| Sequence of requested data fields. |
26
26
27
-
### Mask1 Fields
28
-
29
-
The following bits in `mask1` control which fields are included in the response. When a bit is set, the corresponding field is included in the response in the order listed below.
| 9-31 |_(unused)_| - | Reserved for future use. |
27
+
### Mask Fields
28
+
29
+
The bits in `mask1` and `mask2` control which fields are included in the response. When a bit is set, the corresponding field is included in the response in the order listed below.
0 commit comments