View Single Post
  #19   Spotlight this post!  
Unread 13-04-2010, 18:07
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
Re: Suggestion for next year's WPILib

I have a different suggestion for WPILib & WPILibJ:
Make WPILib & WPILibJ as close to the same as possible (and make them make more sense)
also, having WPILib and WPILibJ have the same version number would be nice
Although I have only looked at the Dashboard and Driverstation classes, they are quite a bit different (and helped cause this error http://www.chiefdelphi.com/forums/sh...2612&page=2#20)
2010:
Code:
C++
dash = DriverStation::GetInstance()->GetHighPriorityDashboardPacker();

dash.Printf("%s",data.c_str());//this sends it as well

Java

dash = DriverStation.getInstance().getDashboardPackerHigh();

dash.addString(data);//this does not send it
dash.commit();
Ideal world (2011?)
Code:
C++
dash = DriverStation::GetInstance()->GetHighPriorityDashboardPacker();

dash.AddString("%s",data.c_str());
dash.Send();

Java

dash = DriverStation.getInstance().getHighPriorityDashboardPacker();

dash.addString(data);
dash.send();
__________________
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