Now you can download a copy of these docs so you can use them offline! Download now
HiTechnicCompass.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef __HiTechnicCompass_h__
8 #define __HiTechnicCompass_h__
9 
10 #include "SensorBase.h"
11 #include "LiveWindow/LiveWindowSendable.h"
12 
13 class I2C;
14 
28 {
29 public:
30  explicit HiTechnicCompass(uint8_t moduleNumber);
31  virtual ~HiTechnicCompass();
32  float GetAngle();
33 
34  void UpdateTable();
35  void StartLiveWindowMode();
36  void StopLiveWindowMode();
37  std::string GetSmartDashboardType();
38  void InitTable(ITable *subTable);
39  ITable * GetTable();
40 
41 private:
42  static const uint8_t kAddress = 0x02;
43  static const uint8_t kManufacturerBaseRegister = 0x08;
44  static const uint8_t kManufacturerSize = 0x08;
45  static const uint8_t kSensorTypeBaseRegister = 0x10;
46  static const uint8_t kSensorTypeSize = 0x08;
47  static const uint8_t kHeadingRegister = 0x44;
48 
49  I2C* m_i2c;
50 
51  ITable *m_table;
52 };
53 
54 #endif
55 
virtual ~HiTechnicCompass()
Definition: ITable.h:26
void InitTable(ITable *subTable)
std::string GetSmartDashboardType()
Definition: I2C.h:22
HiTechnicCompass(uint8_t moduleNumber)

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6