1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| """ 座舱传感器数据传输方案对比 """
class TransportOption: def __init__(self, name, bandwidth_gbps, distance_m, cost, standard, power_w): self.name = name self.bandwidth = bandwidth_gbps self.distance = distance_m self.cost = cost self.standard = standard self.power = power_w
OPTIONS = [ TransportOption("LVDS (传统)", 1.0, 3, "低", "私有", 0.5), TransportOption("FPD-Link III", 3.0, 10, "中", "私有", 0.8), TransportOption("MIPI A-PHY", 12.0, 15, "中", "开放标准", 0.6), TransportOption("以太网 10GBASE-T1", 10.0, 15, "高", "标准", 3.0), ]
print("=== 座舱数据传输方案对比 ===") for opt in OPTIONS: print(f"\n{opt.name}:") print(f" 带宽: {opt.bandwidth} Gbps") print(f" 距离: {opt.distance} m") print(f" 成本: {opt.cost}") print(f" 标准: {opt.standard}") print(f" 功耗: {opt.power} W") max_mp30 = opt.bandwidth / (30 * 12 / 8 * 1e-3) print(f" 可支持: ~{max_mp30:.0f}MP@30fps")
|