I'm familiar with reading C code, so I think all I have to do is replace one of the wheel patterns provided in the text file and pass this file to the .exe.
For this trigger disk, can you confirm that the following code is correct?
Code: Select all
// 24/1 trigger disk (high res disk for DSM CAS)
// 360/24 is 15 degrees, can't use floats so off and on will be different values i.e. 7 and 8
00,7,
01,8, // 1
00,7,
01,8, // 2
00,7,
01,8, // 3
00,7,
01,8, // 4
00,7,
01,8, // 5
00,7,
01,8, // 6
00,7,
01,8, // 7
00,7,
01,8, // 8
00,7,
01,8, // 9
00,7,
01,8, // 10
00,7,
01,8, // 11
00,7,
11,8, // 12
10,7, // cam signal
11,8, // 13
00,7,
01,8, // 14
00,7,
01,8, // 15
00,7,
01,8, // 16
00,7,
01,8, // 17
00,7,
01,8, // 18
00,7,
01,8, // 19
00,7,
01,8, // 20
00,7,
01,8, // 21
00,7,
01,8, // 22
00,7,
01,8, // 23
00,7,
01,8, // 24
0xff // terminating string
Code: Select all
C:\Users\Joseph Spencer\Desktop>wheel_converter.exe wheels_default.jsw foo.jsr COM3 9600
Signature: JimStim format V2.0.4 *********
wheel address 1: e209
wheel address 2: e29a
wheel address 3: e38b
wheel address 4: e39c
wheel address 5: e3b7
wheel address 6: e43a
wheel address 7: e4b7
wheel address 8: e4ce
wheel address 9: e4f3
wheel address 10: e555
wheel address 11: e584
wheel address 12: e5ab
wheel address 13: e5ae
wheel address 14: e5b6
wheel address 16: e5cc
wheel address 17: e5db
wheel address 18: e60c
wheel address 19: e635
wheel address 20: e63e
wheel address 21: e648
wheel address 22: e650
wheel address 23: e66f
wheel address 24: e681
wheel address 25: e690
wheel address 26: e6ad
wheel address 27: e737
wheel address 28: e7b9
wheel address 29: e83f
wheel address 30: e870
wheel address 32: e892
wheel address 33: e8c5
wheel address 34: e906
wheel address 35: e91a
wheel address 36: e934
wheel address 37: e954
wheel address 38: e96d
wheel address 39: e988
wheel address 40: e9ac
wheel address 41: ec7e
wheel address 42: ef51
wheel address 43: ef8a
wheel address 44: efcd
wheel address 45: f054
buf_pos: f0dc
checksum : 232 received : 232 1
checksum : 149 received : 149 1
(originally posted here)