// // tgtdefs-NRA-UK.txt - target definition file // // $Author: dmc $ $Revision: 1446 $ $Date: 2017-02-09 04:50:06 -0700 (Thu, 09 Feb 2017) $ // $Id: UK-NRA.tgt 1446 2017-02-09 11:50:06Z dmc $ // Updated for new "V" scoring under SMTV2 software var METRESTOFEET = 3.280839; var YARDSTOMETRES = 3/METRESTOFEET; var INCHESTOMM = 25.4; var MM_PER_MOA_PER_1Y = 1.047*25.4/100 ; // multiply this by the distance in yards var MM_PER_MOA_PER_1M = 1.047*25.4/100*39.37/36 ; // multiply this by the distance in metres var v2options = { temp_unit_name: 'C', // units to report temperature; "F" causes C->F conversion // options used by v2.1 code: shot_format: '{1}.{2}V.{3}X', // e.g. "49.8V.2X" shot_format: '{1}.{2}-{3}', // e.g. "49.8-2" shot_format: '{1}.{2}V', // TR: "49.6V" speed_unit_name: 'fps', // units to report speed; default = 'fps' speed_unit_mpier: METRESTOFEET, // speeds will be round()'ed groupsize_unit_mpier: 1/INCHESTOMM, // show group size in inches groupsize_unit_name: '"', // groupsize_unit_ndigs: 1, // xxx.x" groupsize_height_unit_mpier: 0, // don't show group height groupsize_height_unit_name: 'H', // groupsize_height_unit_ndigs: 2, // xxx.xx MOA groupsize_width_unit_mpier: 1/(MM_PER_MOA_PER_1M * 300), // show group width in MOA groupsize_width_unit_name: 'W', // groupsize_width_unit_ndigs: 2, // xxx.xx MOA }; var NRA_UK_LR = { // 6'x10' frames distance:1000*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 120*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:14.4*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:24*INCHESTOMM } }, { name:"4", score:4, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:48*INCHESTOMM } }, { name:"3", score:3,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:72*INCHESTOMM } }, { name:"2", score:2,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:96*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 118*INCHESTOMM, height:70*INCHESTOMM } }, ], }; var NRA_UK_LR_F = { // 6'x10' frames distance:1000*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 120*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:5*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:10*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:20*INCHESTOMM } }, { name:"3", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:32*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:44*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:72*INCHESTOMM } }, // { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, // type: {name:"rect", width: 118*INCHESTOMM, height:70*INCHESTOMM } }, ], }; module.exports = { 'NRA-TR-200X': { distance:200*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 1220, height: 1220, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth: 0.025*INCHESTOMM, type: {name:"ring", dia:2.1*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:3.5*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:7*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:10.5*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:16*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 46*INCHESTOMM, height:46*INCHESTOMM } }, ], }, 'NRA-TR-300X': { distance:300*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 1220, height: 1220, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth: 0.025*INCHESTOMM, type: {name:"ring", dia:3.3*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:5.5*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:11*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:16.5*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:22*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 46*INCHESTOMM, height:46*INCHESTOMM } }, ], }, 'NRA-TR-400X': { distance:400*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 1220, height: 1220, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth: 0.025*INCHESTOMM, type: {name:"ring", dia:4.8*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:8*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:16*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", borderwidth: 0.100*INCHESTOMM, type: {name:"ring", dia:24*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:32*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 46*INCHESTOMM, height:46*INCHESTOMM } }, ], }, 'NRA-TR-500X': { distance:500*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:6.3*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:10.5*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:26*INCHESTOMM } }, { name:"3", score:3, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:39*INCHESTOMM } }, { name:"2", score:2,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:52*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 70*INCHESTOMM, height:60*INCHESTOMM } }, ], }, 'NRA-TR-600X': { distance:600*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:2.3, type: {name:"ring", dia:7.8*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:13*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:26*INCHESTOMM } }, { name:"3", score:3, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:39*INCHESTOMM } }, { name:"2", score:2,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:52*INCHESTOMM } }, { name:"1", score:1, colour:"transparent", bordercolour:"black", borderwidth:1, type: {name:"rect", width: 70*INCHESTOMM, height:60*INCHESTOMM } }, ], }, 'NRA-TR-700m': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=2200/METRESTOFEET, t.distance=700,t), 'NRA-TR-800X': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=2200/METRESTOFEET, t.distance=800*YARDSTOMETRES,t), 'NRA-TR-900X': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=2100/METRESTOFEET, t.distance=900*YARDSTOMETRES,t), 'NRA-TR-1000X': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=2000/METRESTOFEET, t.distance=1000*YARDSTOMETRES,t), 'NRA-TR-1100X': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=1900/METRESTOFEET, t.distance=1100*YARDSTOMETRES,t), 'NRA-TR-1200X': (t=JSON.parse(JSON.stringify(NRA_UK_LR)),t.options.ghost_max=1800/METRESTOFEET, t.distance=1200*YARDSTOMETRES,t), 'NRA-F-200X': { distance:200*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:1*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:2*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:4*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:6*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:8*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:10*INCHESTOMM } }, ], }, 'NRA-F-300X': { distance:300*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:1.5*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:3*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:6*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:9*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:12*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:15*INCHESTOMM } }, ], }, 'NRA-F-400X': { distance:400*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:2*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:4*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:8*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:12*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:16*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:20*INCHESTOMM } }, ], }, 'NRA-F-500X': { distance:500*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:2.5*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:5*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:10*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:15*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:20*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:25*INCHESTOMM } }, ], }, 'NRA-F-600X': { distance:600*YARDSTOMETRES, centrecoords: {x:0, y:0}, targetboard: { width: 72*INCHESTOMM, height: 72*INCHESTOMM, colour:"white", bordercolour:"black", borderwidth:10 }, options : v2options, scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name:"V", score:[5,1], bordercolour:"transparent", colour:"white", borderwidth:2.3, type: {name:"ring", dia:3*INCHESTOMM } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:6*INCHESTOMM } }, { name:"4", score:4, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:12*INCHESTOMM } }, { name:"3", score:3, colour:"transparent", bordercolour:"white", type: {name:"ring", dia:18*INCHESTOMM } }, { name:"2", score:2, colour:"black", /* no border - aiming mark */ type: {name:"ring", dia:24*INCHESTOMM } }, { name:"1", score:1,colour:"white", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:30*INCHESTOMM } }, ], }, 'NRA-F-800X': (t=JSON.parse(JSON.stringify(NRA_UK_LR_F)),t.options.ghost_max=2200/METRESTOFEET, t.distance=800*YARDSTOMETRES,t), 'NRA-F-900X': (t=JSON.parse(JSON.stringify(NRA_UK_LR_F)),t.options.ghost_max=2100/METRESTOFEET, t.distance=900*YARDSTOMETRES,t), 'NRA-F-1000X': (t=JSON.parse(JSON.stringify(NRA_UK_LR_F)),t.options.ghost_max=2000/METRESTOFEET, t.distance=1000*YARDSTOMETRES,t), 'NRA-F-1100X': (t=JSON.parse(JSON.stringify(NRA_UK_LR_F)),t.options.ghost_max=1900/METRESTOFEET, t.distance=1100*YARDSTOMETRES,t), 'NRA-F-1200X': (t=JSON.parse(JSON.stringify(NRA_UK_LR_F)),t.options.ghost_max=1800/METRESTOFEET, t.distance=1200*YARDSTOMETRES,t), }