Thanks
The team members of FRC Team 2220 would like to give a big thanks to all of the Sponsors, Mentors and Parents that make having this team possible.
Thank you!
Team Login
| Dashboard Data Format.h |
|
|
|
| Written by TarinB |
| Saturday, February 13 2010 16:47 |
|
#ifndef __DashboardDataFormat_h__ #define __DashboardDataFormat_h__
#include "WPILib.h"
/** * This class is just an example of one way you could organize the data that you want * to send to the dashboard. The PackAndSend method does all the work. You could * put the packing code directly in your code, but this model protects you from * packing data in the wrong order throughout your code. * * The data and the format of this structure are just an example. It is written to * match the initial data format expected by the LabVIEW Dashboard project. Feel free * to add data elements or remove them. Just remember to make any changes consistently * between the LabVIEW "Dashboard Datatype" and the data that gets packed by this class. */ class DashboardDataFormat : public SensorBase { public: DashboardDataFormat(void); virtual ~DashboardDataFormat(); float m_AnalogChannels[kAnalogModules][kAnalogChannels]; UINT8 m_RelayFwd[kDigitalModules]; UINT8 m_RelayRev[kDigitalModules]; UINT16 m_DIOChannels[kDigitalModules]; UINT16 m_DIOChannelsOutputEnable[kDigitalModules]; UINT8 m_PWMChannels[kDigitalModules][kPwmChannels]; UINT8 m_SolenoidChannels; bool boolUserData[4]; INT32 intUserData; void PackAndSend(void); private: DISALLOW_COPY_AND_ASSIGN(DashboardDataFormat); DriverStation *m_ds; };
#endif // __DashboardDataFormat_h__ |










