Coverage for src / bluetooth_sig / gatt / characteristics / local_north_coordinate.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-18 11:17 +0000

1"""Local North Coordinate characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from .base import BaseCharacteristic 

6from .templates import ScaledSint24Template 

7 

8 

9class LocalNorthCoordinateCharacteristic(BaseCharacteristic[float]): 

10 """Local North Coordinate characteristic (0x2AB0). 

11 

12 org.bluetooth.characteristic.local_north_coordinate 

13 

14 Local North Coordinate characteristic. 

15 """ 

16 

17 # Manual overrides required as Bluetooth SIG registry doesn't provide unit/value type 

18 _manual_unit = "m" 

19 # SIG spec: sint24 with 0.1 m resolution → fixed 3-byte payload; no GSS YAML 

20 expected_length = 3 

21 min_length = 3 

22 max_length = 3 

23 _template = ScaledSint24Template(scale_factor=0.1)