From c78ebe661a7d452eb9f167931eb6954493798fe8 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Thu, 15 Oct 2026 13:19:18 -0500 Subject: [PATCH] generate: "center" in the --offset-v/--offset-ma help (American spelling) Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++-- cmd/benchpod-cli/commands_tcp.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cae553d..3e0711c 100644 --- a/README.md +++ b/README.md @@ -809,9 +809,9 @@ benchpod generate --waveform sine --freq 1kHz --path 3v3 --amplitude-v 1.48 --of | `--freq` | `1kHz` | Output frequency with its unit, e.g. `2kHz`; a bare number is Hz. | | `--path` | | DAC output for the volts: `3v3`, `5v` or `12v` (firmware 3.9.1+). | | `--amplitude-v` | | Peak in volts on `--path`, 16-bit and calibrated (firmware 3.9.1+). | -| `--offset-v` | | Centre in volts on `--path`, with `--amplitude-v`. | +| `--offset-v` | | Center in volts on `--path`, with `--amplitude-v`. | | `--amplitude-ma` | | Peak in mA on the 4-20 mA output (J9), 16-bit (firmware 3.9.1+). | -| `--offset-ma` | | Centre in mA on the 4-20 mA output, with `--amplitude-ma`. | +| `--offset-ma` | | Center in mA on the 4-20 mA output, with `--amplitude-ma`. | | `--amplitude` | `127` | Half-scale amplitude in 8-bit levels, 0-127. | | `--offset` | `128` | DC offset in 8-bit levels, 0-255. | | `--duration` | `0` | How long to play, e.g. `2s` or `500ms`; `0` runs until the next command. | diff --git a/cmd/benchpod-cli/commands_tcp.go b/cmd/benchpod-cli/commands_tcp.go index 48a074c..84f29e5 100644 --- a/cmd/benchpod-cli/commands_tcp.go +++ b/cmd/benchpod-cli/commands_tcp.go @@ -141,9 +141,9 @@ func newGenerateCmd(g *globalFlags) *cobra.Command { cmd.Flags().IntVar(&offset, "offset", 128, "DC offset in 8-bit levels 0-255") cmd.Flags().StringVar(&path, "path", "", "DAC output for --amplitude-v/--offset-v: 3v3|5v|12v (firmware 3.9.1+)") cmd.Flags().Float64Var(&litudeV, "amplitude-v", 0, "peak in volts on --path, played calibrated at 16 bits (firmware 3.9.1+)") - cmd.Flags().Float64Var(&offsetV, "offset-v", 0, "centre in volts on --path (with --amplitude-v)") + cmd.Flags().Float64Var(&offsetV, "offset-v", 0, "center in volts on --path (with --amplitude-v)") cmd.Flags().Float64Var(&litudeMA, "amplitude-ma", 0, "peak in mA on the 4-20 mA output, 16-bit (firmware 3.9.1+)") - cmd.Flags().Float64Var(&offsetMA, "offset-ma", 0, "centre in mA on the 4-20 mA output (with --amplitude-ma)") + cmd.Flags().Float64Var(&offsetMA, "offset-ma", 0, "center in mA on the 4-20 mA output (with --amplitude-ma)") cmd.Flags().DurationVar(&duration, "duration", 0, "how long to output, e.g. 2s or 500ms (0 = run until next command)") cmd.Flags().IntVar(&durationMS, "duration-ms", 0, "duration in ms (0 = run until next command); same as --duration") cmd.Flags().Var(newFrequencyValue(0, &sampleRateHz), "sample-rate", "FPGA sample-clock rate, e.g. 10MHz (omit to auto-pick)")