// // tgtdefs-DCRA.txt - target definition file // // $Author: dmc $ $Revision: 2552 $ $Date: 2019-05-02 19:54:58 -0300 (Thu, 02 May 2019) $ // $Id: n-SSAA-TypeC4x4.tgt 2552 2019-05-02 22:54:58Z dmc $ var YARDSTOMETRES = 3/3.28; var INCHESTOMM = 25.4; var METRESTOFEET = 3.28; 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 MM_4FT = 4*12*INCHESTOMM; var MM_6FT = 6*12*INCHESTOMM; var MM_8FT = 8*12*INCHESTOMM; 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', // e.g. "49.8V" }; var targetboard_6x6 = { width: MM_6FT, height: MM_6FT, colour:"white", bordercolour:"black", borderwidth:10 }; var poly_vertices_300 = [[-140.193, -90.6525], [137.957, -88.2442], [140.537, -35.2633], [136.409, -8.42879], [126.776, 14.4493], [101.834, 62.0978], [121.271, 74.655], [68.2904, 111.638], [42.488, 127.464], [31.995, 130.56], [20.8139, 133.14], [7.39669, 133.484], [-11.3531, 131.936], [-26.3185, 127.98], [-38.0155, 122.991], [-55.3892, 110.262], [-77.5792, 85.492], [-96.329, 65.5381], [-102.694, 59.1735], [-109.574, 52.6369], [-115.595, 46.4443], [-107.682, 39.7357], [-116.799, 22.1901], [-124.368, 2.23621], [-131.248, -22.3621], [-137.613, -52.9809], [-140.365, -76.5471]]; var poly_vertices_600 = [[-280.386, -181.305], [275.914, -176.488], [281.074, -70.5266], [272.817, -16.8576], [253.552, 28.8987], [203.667, 124.196], [242.543, 149.31], [136.581, 223.277], [84.9759, 254.928], [63.99, 261.12], [41.6279, 266.281], [14.7934, 266.969], [-22.7061, 263.873], [-52.6369, 255.96], [-76.0311, 245.983], [-110.778, 220.525], [-155.158, 170.984], [-192.658, 131.076], [-205.387, 118.347], [-219.148, 105.274], [-231.19, 92.8887], [-215.364, 79.4714], [-233.598, 44.3801], [-248.735, 4.47242], [-262.497, -44.7242], [-275.226, -105.962], [-280.73, -153.094]]; module.exports = { // 'MRC' targets: // http://www.aihpa.com/targets/HPR_targets.htm // LINKROT: http://www.ssaawa.org.au/wp-content/uploads/2013/05/ssaawa_combined_services_rules.pdf // https://ssaa.org.au/assets/disciplines/long-range-precision/Long-Range-Precision-rule-book.pdf 'SSAA-Type-C-4x4': { // distance:500, centrecoords: {x:0, y:0}, targetboard: targetboard_6x6, 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:"white", bordercolour:"transparent", borderwidth:1, type: {name:"ring", dia:0.75*INCHESTOMM } }, { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:3, type: {name:"ring", dia:150 } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth:3, type: {name:"ring", dia:300 } }, { name:"4", score:4,colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:600 } }, { name:"3", score:3, colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:900 } }, { name:"BLAH", score:66, colour: 'black', borderwidth:1, bordercolour: 'yellow', // bordercolour: 'blue', // useful for debugging type: {name:"poly", shiftamt:[0,0], vertices: poly_vertices_600, } }, { name:"2", score:2, colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:1200 } }, { name:"1", score:1, colour:"yellow", bordercolour:"transparent", borderwidth:1, type: {name:"rect", width: 1200, height:1200 } }, { name:"0", score:0, colour:"transparent", bordercolour:"transparent", borderwidth:1, type: {name:"rect", width: 96*INCHESTOMM, height:96*INCHESTOMM } }, ], }, 'SSAA-Mini': { // http://www.aihpa.com/targets/HPR_targets.htm // distance:300, centrecoords: {x:0, y:0}, targetboard: targetboard_6x6, 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:"white", bordercolour:"transparent", borderwidth:1, type: {name:"ring", dia:0.5*0.75*INCHESTOMM } }, { name:"V", score:[5,1], colour:"transparent", bordercolour:"white", borderwidth:3, type: {name:"ring", dia:0.5*150 } }, { name:"5", score:5, colour:"transparent", bordercolour:"white", borderwidth:3, type: {name:"ring", dia:0.5*300 } }, { name:"4", score:4,colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:0.5*600 } }, { name:"3", score:3, colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:0.5*900 } }, { name:"BLAH", score:66, colour: 'black', borderwidth:1, bordercolour: 'yellow', // bordercolour: 'blue', // useful for debugging type: {name:"poly", shiftamt:[0,0], vertices: poly_vertices_300, } }, { name:"2", score:2, colour:"transparent", bordercolour:"black", borderwidth:3, type: {name:"ring", dia:0.5*1200 } }, { name:"1", score:1, colour:"yellow", bordercolour:"transparent", borderwidth:1, type: {name:"rect", width: 0.5*1200, height:0.5*1200 } }, { name:"0", score:0, colour:"transparent", bordercolour:"transparent", borderwidth:1, type: {name:"rect", width: 96*INCHESTOMM, height:96*INCHESTOMM } }, ], }, }