diff --git a/devices/apa102/apa102.go b/devices/apa102/apa102.go index a372e08..e0a874d 100644 --- a/devices/apa102/apa102.go +++ b/devices/apa102/apa102.go @@ -32,7 +32,7 @@ func ToRGB(p []color.NRGBA) []byte { // there's 32 bits sent per LED, creating a staggered effect. See // https://cpldcpu.wordpress.com/2014/11/30/understanding-the-apa102-superled/ // -// Temperature is in °Kelvin and a reasonable default value is 6500°K. +// Temperature is in Kelvin and a reasonable default value is 6500K. // // As per APA102-C spec, the chip's max refresh rate is 400hz. // https://en.wikipedia.org/wiki/Flicker_fusion_threshold is a recommended diff --git a/devices/bmxx80/bmx280smoketest/bmx280smoketest.go b/devices/bmxx80/bmx280smoketest/bmx280smoketest.go index 3e72571..9d89639 100644 --- a/devices/bmxx80/bmx280smoketest/bmx280smoketest.go +++ b/devices/bmxx80/bmx280smoketest/bmx280smoketest.go @@ -175,7 +175,7 @@ func run(i2cBus i2c.Bus, i2cAddr uint16, spiPort spi.PortCloser) (err error) { if delta.Temperature > 1000 || delta.Temperature < -1000 { return fmt.Errorf("Temperature delta higher than expected (%s): I²C got %s; SPI got %s", delta.Temperature, i2cEnv.Temperature, spiEnv.Temperature) } - // 0.1KPa + // 0.1kPa if delta.Pressure > 100 || delta.Pressure < -100 { return fmt.Errorf("Pressure delta higher than expected (%s): I²C got %s; SPI got %s", delta.Pressure, i2cEnv.Pressure, spiEnv.Pressure) } diff --git a/devices/lepton/cci/cci.go b/devices/lepton/cci/cci.go index 338e622..48b8f89 100644 --- a/devices/lepton/cci/cci.go +++ b/devices/lepton/cci/cci.go @@ -132,7 +132,7 @@ type FFCMode struct { ShutterTempLockoutState ShutterTempLockoutState // Default: ShutterTempLockoutStateInactive ElapsedTimeSinceLastFFC time.Duration // Uptime DesiredFFCPeriod time.Duration // Default: 300s - DesiredFFCTempDelta devices.Celsius // Default: 3°C + DesiredFFCTempDelta devices.Celsius // Default: 3K ImminentDelay uint16 // Default: 52 VideoFreezeDuringFFC bool // Default: true FFCDesired bool // Default: false diff --git a/devices/lepton/internal/internal.go b/devices/lepton/internal/internal.go index a3d5f22..0895478 100644 --- a/devices/lepton/internal/internal.go +++ b/devices/lepton/internal/internal.go @@ -30,7 +30,7 @@ func (d DurationMS) ToD() time.Duration { return time.Duration(d) * time.Millisecond } -// CentiK is temperature in 0.01°K +// CentiK is temperature in 0.01K // // It is an implementation detail of the protocol. type CentiK uint16 diff --git a/devices/lepton/lepton.go b/devices/lepton/lepton.go index 13505e7..3e82008 100644 --- a/devices/lepton/lepton.go +++ b/devices/lepton/lepton.go @@ -48,7 +48,7 @@ type Metadata struct { FFCTemp devices.Celsius // Temperature at last internal calibration. FFCTempHousing devices.Celsius // FFCState cci.FFCState // Current calibration state. - FFCDesired bool // Asserted at start-up, after period (default 3m) or after temperature change (default 3°K). Indicates that a calibration should be triggered as soon as possible. + FFCDesired bool // Asserted at start-up, after period (default 3m) or after temperature change (default 3K). Indicates that a calibration should be triggered as soon as possible. Overtemp bool // true 10s before self-shutdown. } @@ -58,7 +58,7 @@ type Metadata struct { // Values centered around 8192 accorging to camera body temperature. Effective // range is 14 bits, so [0, 16383]. // -// Each 1 increment is approximatively 0.025°K. +// Each 1 increment is approximatively 0.025K. type Frame struct { *image.Gray16 Metadata Metadata // Metadata that is sent along the pixels.