Skip to content

Commit 8ef7127

Browse files
committed
Update servo angle mappings for ID1 in README and source code
1 parent 98f81af commit 8ef7127

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ v4l2-ctl -d /dev/video2 --set-ctrl brightness=0
8686
`Hue` が SCS サーボ ID1、`Contrast` が SCS サーボ ID2 に割り当てられています。
8787
どちらも `0..255``SCS_Ctrl` と同じ論理レンジに変換して送ります。
8888

89-
- ID1: `0 => 45deg`, `128 ~= 90deg`, `255 => 135deg`
89+
- ID1: `0 => 0deg`, `128 ~= 90deg`, `255 => 180deg`
9090
- ID2: `0 => 70deg`, `128 ~= 90deg`, `255 => 110deg`
9191

9292
```bash

module/scs_servo/src/scs_servo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct {
3434
static const char *TAG = "scs_servo";
3535

3636
static const scs_servo_definition_t s_definitions[SCS_SERVO_CHANNEL_COUNT] = {
37-
[SCS_SERVO_CHANNEL_ID1] = { .id = 1, .logical_min_deg = 45.0f, .logical_max_deg = 135.0f },
37+
[SCS_SERVO_CHANNEL_ID1] = { .id = 1, .logical_min_deg = 0.0f, .logical_max_deg = 180.0f },
3838
[SCS_SERVO_CHANNEL_ID2] = { .id = 2, .logical_min_deg = 70.0f, .logical_max_deg = 110.0f },
3939
};
4040

0 commit comments

Comments
 (0)