Minor fix

This commit is contained in:
grove5_admin committed 2026-04-23 20:43:43 -07:00
1 parent 0ceafd2fae
commit 852e4444b9
35 files changed
+32 -34

No files matched your search

+28 -28
View File
@@ -76,9 +76,9 @@ ArUco provides more IDs but is optimized for data storage, not pose estimation.
The AprilTag camera returns a single integer (0–2114). This integer is expanded to a 12-bit binary string and parsed left to right.
```
Bit: 0 1 2 3 4 5 6 7 8 9 10 11
Field: [SIZE] [SUBSTRATE ........] [SPECIES .........]
1 bit 5 bits 7 bits
Bit: 0 1 2 3 4 5 6 7 8 9 10 11
Field: [SIZE] [SUBSTRATE ........] [SPECIES .......]
1 bit 5 bits 6 bits
```
### Field definitions
@@ -87,7 +87,7 @@ Field: [SIZE] [SUBSTRATE ........] [SPECIES .........]
|------|-------|-------|--------|-------|
| 0 | Size | 1 bit | 2 | Small=0, Large=1 |
| 1–5 | Substrate | 5 bits | 32 | See Section 5 |
| 6–11 | Species | 7 bits | 128 | Lookup table selected by substrate slot |
| 6–11 | Species | 6 bits | 64 | Lookup table selected by substrate slot |
### Size field
@@ -112,9 +112,9 @@ The Cultivar knows starting substrate weight from the size field. Harvest weight
### Species field
7 bits provide 128 slots **per substrate**. The substrate slot (bits 1–5) selects which species lookup table is active. The same species code always refers to the same species across all tables where that species appears — ensuring QR redundancy checks are consistent.
6 bits provide 64 slots **per substrate**. The substrate slot (bits 1–5) selects which species lookup table is active. The same species code always refers to the same species across all tables where that species appears — ensuring QR redundancy checks are consistent.
**Species code 63** (binary `0111111`) is reserved as Other/prompt on every substrate table. The Cultivar falls back to QR scan or manual entry when this code is encountered.
**Species code 63** (binary `111111`) is reserved as Other/prompt on every substrate table. The Cultivar falls back to QR scan or manual entry when this code is encountered.
### Encoding example
@@ -152,13 +152,13 @@ Distribution across the encoding space:
| Namespace | Substrate Slots | Species / Substrate | IDs Used |
|-----------|----------------|---------------------|----------|
| AIO Standard (slots 0–9) | 10 | ~40 avg | ~800 |
| AIO Advanced (slots 10–14) | 5 | ~25 avg | ~250 |
| Grain (slots 15–21) | 7 | ~30 avg | ~420 |
| Bulk (slots 22–28) | 7 | ~30 avg | ~420 |
| AIO Standard (slots 0–9) | 10 | ~40 avg | ~400 |
| AIO Advanced (slots 10–14) | 5 | ~25 avg | ~125 |
| Grain (slots 15–23) | 9 | ~20 avg | ~180 |
| Bulk (slots 24–31) | 8 | ~20 avg | ~160 |
| Other / Reserved (slots 29–31) | 3 | — | ~3 |
| **Total active** | **32** | | **~1,893** |
| **Headroom** | | | **~222** |
| **Total active** | **32** | **64 max** | **~868** |
| **Headroom** | | | **~1,247** |
Reserved ID slots are never assigned as printed tags. The Cultivar validates against the active dictionary. An unknown tag ID triggers graceful fallback — it never causes an error state.
@@ -224,22 +224,22 @@ Species lookup tables are defined per substrate slot in [`tables/species/`](tabl
| File | Substrate |
|------|-----------|
| `tables/species/aio-00.md` | Masters Mix + Millet |
| `tables/species/aio-01.md` | Masters Mix + Rye Berry |
| `tables/species/aio-02.md` | Masters Mix + Wheat Berry |
| `tables/species/aio-03.md` | MM Lite + Wheat Berry |
| `tables/species/aio-04.md` | CVG + Millet |
| `tables/species/aio-05.md` | CVG + Oats |
| `tables/species/aio-06.md` | Pasteurized Straw + Millet |
| `tables/species/aio-07.md` | Pasteurized Straw + Barley |
| `tables/species/aio-08.md` | HWSD 100% + Wheat Berry |
| `tables/species/aio-09.md` | Rye + HWSD Blended 70:30 |
| `tables/species/aio-10.md` | Soy Hull Heavy + Millet |
| `tables/species/aio-11.md` | Soy Hull Heavy + Rye Berry |
| `tables/species/aio-12.md` | Cardboard + Coffee Grounds |
| `tables/species/aio-13.md` | Manure Based + Rye Berry |
| `tables/species/grain-15.md` | Rye Berry |
| `tables/species/grain-16.md` | Millet |
| `tables/species/aio-0-flagship-mm.md` | Masters Mix + Millet |
| `tables/species/aio-1-speed-mm.md` | Masters Mix + Rye Berry |
| `tables/species/aio-2-woody-mm.md` | Masters Mix + Wheat Berry |
| `tables/species/aio-3-low-n-mm.md` | MM Lite + Wheat Berry |
| `tables/species/aio-4-hobbyist-cvg.md` | CVG + Millet |
| `tables/species/aio-5-economy-cvg.md` | CVG + Oats |
| `tables/species/aio-6-straw-millet.md` | Pasteurized Straw + Millet |
| `tables/species/aio-7-straw-barley.md` | Pasteurized Straw + Barley |
| `tables/species/aio-8-pure-wood.md` | HWSD 100% + Wheat Berry |
| `tables/species/aio-9-blend.md` | Rye + HWSD Blended 70:30 |
| `tables/species/aio-10-adv-soy.md` | Soy Hull Heavy + Millet |
| `tables/species/aio-11-adv-rye.md` | Soy Hull Heavy + Rye Berry |
| `tables/species/aio-12-waste-stream.md` | Cardboard + Coffee Grounds |
| `tables/species/aio-13-dung.md` | Manure Based + Rye Berry |
| `tables/species/spawn-15-rye.md` | Rye Berry |
| `tables/species/spawn-16-milo.md` | Milo |
| ... | ... |
---
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-2
View File
@@ -47,8 +47,6 @@ The substrate slot is the most consequential field in the encoding. It determine
## Bulk (Slots 24–31)
_To be defined._
| Slot | Substrate | Notes |
|------|-----------|-------|
| 24 | Masters Mix (HWSD/Soy Hull 50:50) | Flagship. Broad species, high yield. |
+4 -4
View File
@@ -51,8 +51,8 @@ SPECIES_MASTER = [
{"id": 9, "name": "Tarragon Oyster", "sci": "P. euosmus", "morphology": "shelf", "optimal_aios": [0, 4], "permissive_aios": [9, 14], "optimal_bulk": [24, 27], "permissive_bulk": [25, 31], "spawn_subs": [15, 17, 23]},
{"id": 10, "name": "Florida Oyster", "sci": "P. floridanus", "morphology": "shelf", "optimal_aios": [6, 11], "permissive_aios": [0, 14], "optimal_bulk": [28, 29], "permissive_bulk": [24, 31], "spawn_subs": [16, 17, 23]},
{"id": 11, "name": "Lung Oyster", "sci": "P. pulmonarius", "morphology": "shelf", "optimal_aios": [0, 4], "permissive_aios": [9, 14], "optimal_bulk": [24, 27], "permissive_bulk": [25, 31], "spawn_subs": [16, 17, 23]},
{"id": 12, "name": "Late Oyster", "sci": "S. serotina", "morphology": "thick_cap", "optimal_aios": [8], "permissive_aios": [2, 14], "optimal_bulk": [25], "permissive_bulk": [26, 31], "spawn_subs": [18, 19, 23]},
{"id": 13, "name": "Veiled Oyster", "sci": "P. dryinus", "morphology": "wood_cap", "optimal_aios": [8], "permissive_aios": [2, 14], "optimal_bulk": [25], "permissive_bulk": [26, 31], "spawn_subs": [18, 19, 23]},
{"id": 12, "name": "Late Oyster", "sci": "S. serotina", "morphology": "thick_cap", "optimal_aios": [8], "permissive_aios": [0, 2, 14], "optimal_bulk": [25], "permissive_bulk": [26, 31], "spawn_subs": [18, 19, 23]},
{"id": 13, "name": "Veiled Oyster", "sci": "P. dryinus", "morphology": "wood_cap", "optimal_aios": [8], "permissive_aios": [0, 2, 14], "optimal_bulk": [25], "permissive_bulk": [26, 31], "spawn_subs": [18, 19, 23]},
{"id": 14, "name": "Tree Oyster", "sci": "P. sapidus", "morphology": "shelf", "optimal_aios": [0, 9], "permissive_aios": [2, 14], "optimal_bulk": [24], "permissive_bulk": [25, 31], "spawn_subs": [15, 17, 23]},
{"id": 15, "name": "Elm Oyster", "sci": "H. ulmarius", "morphology": "shelf", "optimal_aios": [0, 2], "permissive_aios": [8, 9, 14], "optimal_bulk": [24, 25], "permissive_bulk": [26, 31], "spawn_subs": [15, 18, 19, 23]},
{"id": 16, "name": "Indian Oyster", "sci": "P. sajor-caju", "morphology": "shelf", "optimal_aios": [6, 0], "permissive_aios": [4, 7, 14], "optimal_bulk": [28, 24], "permissive_bulk": [27, 31], "spawn_subs": [15, 17, 23]},
@@ -155,7 +155,7 @@ SPECIES_MASTER = [
# --- 2. Generation Logic ---
def generate_tables(output_dir="tables/species"):
def generate_tables(output_dir="../tables/species"):
if not os.path.exists(output_dir):
os.makedirs(output_dir)
@@ -194,7 +194,7 @@ def generate_tables(output_dir="tables/species"):
f.write(f"| {spec['id']} | {spec['name']} | *{spec['sci']}* | {morph} | {spec['affinity']} |\n")
# Add the Reserved buffer at the bottom
f.write("| 104–127 | Reserved | — | — | Reserved |\n")
f.write("| 104-127 | Reserved | — | — | Reserved |\n")
print(f"Generated: {file_path}")