Opened 10 years ago

Closed 9 years ago

#61 closed enhancement (fixed)

Units option on *calibrate

Reported by: Andrew Owned by: Olly Betts
Priority: minor Milestone: 1.2.21
Component: cavern Version:
Keywords: calibration Cc:

Description (last modified by Olly Betts)

Currently the calibrate adjusts for the offset then multiplies by the scale factor, which works for a stretched tape with the end missing *calibrate tape 0.05 0.752

But of things like mounting a DistoX in a waterproof case the offset will be measured with another device so will not want scaling

Suggestion is to allow the addition of units to the offset if the scale factor should not be applied, this should allow the original format to continue to work while adding functionality.

if not units

real = ( reading - offset) * scale

If units eg *calibrate tape -0.05m 0.752

real = reading * scale - offset

Change History (4)

comment:1 Changed 10 years ago by Andrew

Component: Othercavern

comment:2 Changed 9 years ago by Olly Betts

Description: modified (diff)
Keywords: calibration added; calibraton removed
Status: newassigned
Summary: Units option on *calabrateUnits option on *calibrate

comment:3 Changed 9 years ago by Olly Betts

Milestone: 1.2.21

Fixed in [88569feea8f9e902169f14758b420dafe4890ec0/git]. Syntax implemented is:

*calibrate tape -0.05 metres 0.752

comment:4 Changed 9 years ago by Olly Betts

Milestone: 1.2.221.2.21
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.