View Single Post
  #22   Spotlight this post!  
Unread 20-02-2006, 16:45
jakep jakep is offline
Software Engineer
AKA: Jake Poznanski
FRC #0862 (Lightning Robotics)
Team Role: Programmer
 
Join Date: Aug 2005
Rookie Year: 2004
Location: Michigan
Posts: 35
jakep has a spectacular aura aboutjakep has a spectacular aura about
Re: White Paper Discuss: Playstation 2 Controller Adapter

No, your code will not work. The reason is that the analog signals sent out by the digipots and the OI are not sensitive enough to accurately measure a 1 bit difference on an analog port. The max we had good results with was 4 digital outputs on one 8bit analog signal. The reason it is 0x87 is to provide an offset so that if there is a difference of 1 bit, it won't erroneously send button signals.
__________________
Jake Poznanski
Programmer - Team 862 - Lightning Robotics

Microsoft MVP, 2005 - Windows - SPOT Technologies
http://www.spotdev.net
Reply With Quote