Added getter functions to accels

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1503 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-01-16 20:42:11 +00:00
parent 96d2dc33fe
commit 80689920af
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ public:
void print_accel_offsets(void); ///< XXX debug hack
void print_gyro_offsets(void); ///< XXX debug hack
int ax() { return _adc_offset[3]; }
int ay() { return _adc_offset[4]; }
int az() { return _adc_offset[5]; }
void ax(const int v) { _adc_offset[3] = v; }
void ay(const int v) { _adc_offset[4] = v; }
void az(const int v) { _adc_offset[5] = v; }