The code and schematics provided for the generic player control are are now functional for IR shooting and RF Area of Effect weapons (i.e., IR transmission and reception, and RF transmission and reception are fully implemented). There was a problem with the VirtualWire (RF transmission) and IRRemote (IR transmission) libraries together. The IR transmission did not work properly with the VirtualWire library. To fix this, VirtualWire's Timer, timer 1, is disabled for the duration of IR transmission. Once this was fixed, we were able to test the rest of the code. The 16-bit codes from both the RF and IR transmitters are correctly received and parsed, and the codes do the proper damage, healing, or debuf to each player. The code properly ensures that the received signal is not corrupted (by checking the length of the received message and the header code), and it makes sure that there is no friendly fire (i.e., same team members cannot hurt one another).
The range of the RF and IR devices has been partially tested (they've only been tested in as far apart as my house allows for). The IR transmitter correctly receives so far up to 10 ft (larger distances haven't been tested). The shot has to be fairly straight on the IR receiver (if the receiver is shot at an angle, the signal isn't received properly and the player isn't damaged).
The RF transmitter has been tested up to about 10m through walls and receives the code correctly at this distance. This is a bit too powerful for the game, so we will decrease the power of the signal, and therefore the distance, by decreasing the input voltage to the RF transmitter.
This weekend we'll hopefully be able to get outside and do some
The range of the RF and IR devices has been partially tested (they've only been tested in as far apart as my house allows for). The IR transmitter correctly receives so far up to 10 ft (larger distances haven't been tested). The shot has to be fairly straight on the IR receiver (if the receiver is shot at an angle, the signal isn't received properly and the player isn't damaged).
The RF transmitter has been tested up to about 10m through walls and receives the code correctly at this distance. This is a bit too powerful for the game, so we will decrease the power of the signal, and therefore the distance, by decreasing the input voltage to the RF transmitter.
This weekend we'll hopefully be able to get outside and do some