|
Post by Frisbone on Jan 12, 2014 8:28:38 GMT -5
Before the main code starts I inserted some code to test the PWM logic. You can do something similar to test the DAC. Look for references to TEST_PWM. I think I may have already added something for TEST_DAC - but it obviously wasn't tested since I didn't have the HW. But the idea is that before the code starts, but after HW init it gives you an interactive text menu that allows you to give it simply instructions like apply a certain % movement to an axis - then you can visually watch it as you are connected to a 1st person game. I was actually able to play COD in a very limited way like this. You can also isolate the AM from your testing and test only parts of the conversion logic at a time combined with driving the DAC (JY). The flags for this are SIMULATE_AM, SIMULATE_POSITION, or SIMULATE_VELOCITY. The input file you specify must contain 3 values per line CSV (double values). I've attached samples for each type that roughly try to move you in a clockwise square (but the reality is that it isn't really a rectangle, just approximates it). Lots of other flags too. They key on these it so match up the sample rate. Pretty sure these files were taken at 12.5 samples per second. So if you increase that rate - you'll need to add move samples to the files. Attachments:
|
|
|
Post by lintball on Jan 24, 2014 9:34:19 GMT -5
Yea I got the DAC's working using your test mode, where I could type in values. I will clean up the DAC code a little then check it back in.
|
|