Go to Post Give us six more motors in the kit, and we'll try and come up with something... - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 15-12-2009, 22:15
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
replace WPILib part

In the C programming manual that comes with WPILib, I remember it saying you can replace parts of WPILib by adding the source code to your class, and then just compiling. I was testing a modified Dashboard class (removed all functions, except Printf and Finalize, both renamed Add and Send (and inner code tweaked), and no matter what I tried, It would give either a compiler or linker error. The one tricky thing is I must get my custom dashboard class from ds->GetDashboardPacker() because it needs access to a shared status pointer the dashboard updates. How do I get this to work?

Things I have tried:
Dashboard.c & h in project dir
copy h to WPILib folder, overwriting original h
delete my .h
#if trickery (from my c new, else old, and a few other...)
h style trickery (forward declarations, etc...)
restore my h
combine my H and c
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we replace the joystick with a steering? mahmosh Technical Discussion 2 25-01-2009 19:08
Could this replace the Segway? Wayne Doenges Chit-Chat 1 01-05-2008 11:01
A warning regarding MPLAB and find/replace Tom Line Programming 0 24-01-2008 17:35
REPLACE VEX with us bill mc gowan General Forum 20 23-03-2006 11:12
Call me Steve Irwin... 'cept replace the crocs with bats... Mini-D67 Chit-Chat 7 14-12-2004 21:52


All times are GMT -5. The time now is 14:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi