2
0
mirror of https://github.com/team2059/Zaphod synced 2024-12-18 20:12:28 -05:00

Added a function to put key values and will eventually return if successful

This commit is contained in:
Adam Long 2014-06-08 09:56:03 -04:00
parent bf41285efe
commit 616df6236e
2 changed files with 9 additions and 0 deletions

View File

@ -8,3 +8,9 @@ float ZaphodDashboard::getKeyValue(const char* key)
{
return 1.0f;
}
bool ZaphodDashboard::putKeyValue(const char* key, float value)
{
SmartDashboard::PutNumber(key,value);
return true;
}

View File

@ -5,5 +5,8 @@ class ZaphodDashboard
{
public:
ZaphodDashboard();
//Array used to track the values in the dashboard
bool DashboardValues[];
float getKeyValue(const char* key);
bool putKeyValue(const char* key, float value);
};