View Single Post
  #6   Spotlight this post!  
Unread 07-10-2007, 21:06
ham90mack's Avatar
ham90mack ham90mack is offline
President of RIT FIRST
FRC #0073 (The Illumination)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Rochester, NY
Posts: 120
ham90mack is just really niceham90mack is just really niceham90mack is just really niceham90mack is just really niceham90mack is just really nice
Re: FIRST 2008 Robot Emulator

Quote:
Originally Posted by Tom Bottiglieri View Post
It's all the same stuff.. EasyC is just an abstraction layer for WPILib, and WPILib is just an abstraction layer for the low level stuff. Either way, it all boils down to the communication between the uP and mP, and what all of your low level outputs and inputs are.
Well, that means I probably cannot emulate WPILib or EasyC unless I get source for the libraries since creating the emulator requires overriding the low level outputs and inputs. It appears that the way Rob Bayer's emulator works is to modify the headers of two .c files that use low level I/O stuff so it uses the "hacked" I/O overrides instead when compiled with that code. Then running the main becomes a breeze since the variables are just stored in the PC memory. The hacked I/O files may even redirect back to the emulator. Of course, I have yet to understand how the hacks are actually carried out, but I will learn in due time. Besides, I need to make one for the serial port eventually...
__________________
Old stuff:

FRC 2007 Strategy Solver. Version: 2.55. Progress: done.