local DistanceVoyager1 = {
  Type = "DashboardItemDistance",
  Identifier = "Voyager1Distance",
  GuiName = "Voyager 1 - Earth Distance",
  SourceType = "Node",
  SourceNodeName = "Voyager_1",
  DestinationType = "Node",
  DestinationNodeName = "Earth",
  Enabled = asset.enabled
}

local DistanceVoyager2 = {
  Type = "DashboardItemDistance",
  Identifier = "Voyager2Distance",
  GuiName = "Voyager 2 - Earth Distance",
  SourceType = "Node",
  SourceNodeName = "Voyager_2",
  DestinationType = "Node",
  DestinationNodeName = "Earth",
  Enabled = asset.enabled
}


asset.onInitialize(function()
  openspace.dashboard.addDashboardItem(DistanceVoyager1)
  openspace.dashboard.addDashboardItem(DistanceVoyager2)
end)

asset.onDeinitialize(function()
  openspace.dashboard.removeDashboardItem(DistanceVoyager2)
  openspace.dashboard.removeDashboardItem(DistanceVoyager1)
end)
