specification icon indicating copy to clipboard operation
specification copied to clipboard

feat: add new schema group "winches"

Open preeve9534 opened this issue 5 years ago • 0 comments

Motivation

  1. The next release of the N2K specification will include three new Windlass Network Messages PGNs (see this Technical Bulletin.
  2. The Signal K specification has no framework for windlass data.

Proposal

  1. Accept that a windlass is a type of winch (as is a capstan and maybe even hoist) and focus this discussion on supporting winches as a top-level group in Signal K.
  2. Accept that we model the winches group structure simply as winches.id, where id is an arbitrary identifier (in the case of an N2K connected winch this would be the installation's N2K instance number).
  3. Take this draft pull request as an RFC which will allow refinement of the detail of how we represent winch data in Signal K.

Straw man

Windlass identity

Common to all winches and just like some other installation identities in Signal K.

identity {
  name:
  location:
  dateInstalled:
  manufacturer {
    name:
    model:
    URL:
  }
}

Winch properties

Common to all winches.

type: [ "capstan" | "generic" | "hoist" | "windlass" ]
state: [ "deploying" | "retrieving" | "stopped" ] // what the winch is currently doing
speed: n, n>=1 // logical speed - a meta object may map this into the physical values
inService: [ "no" | "yes" ] // whether or not the winch is available for use
lastOperation: { // changes when state and or speed change
  direction: [ "deploy" | "retrieve" ]
  speed: n, n>=1
  duration: s
}
meta: { // static winch data
  availableSpeeds: [
    {
      id: n,n>=1,
      rate: m/s
    }
  ]
  powerType: [ "electrical" | "hydraulic" | "manual" ]
  spoolDimensions: {
    diameter: m
    length: m
  }
}

Windlass and capstan properties

Additional properties for windlasses and capstans.

deploymentState: [ "docked" | "nearlyDocked" | "deployed" | "fullyDeployed" ]
rodeType: [ "rope" | "chain" ]
rodeCounter: m
lineSpeed: m/s

This draft pull request includes a very draft winches.json that reflects the straw man for those who like that sort of thing.

preeve9534 avatar Dec 09 '20 21:12 preeve9534