mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
acf4e9b61d
this also adds a healthy attribute, and error checking on all I2C calls
16 lines
390 B
C++
16 lines
390 B
C++
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
#ifndef AP_Compass_HIL_H
|
|
#define AP_Compass_HIL_H
|
|
|
|
#include "Compass.h"
|
|
|
|
class AP_Compass_HIL : public Compass
|
|
{
|
|
public:
|
|
AP_Compass_HIL(AP_Var::Key key = AP_Var::k_key_none) : Compass(key) { product_id = AP_COMPASS_TYPE_HIL; }
|
|
bool read(void);
|
|
void setHIL(float Mag_X, float Mag_Y, float Mag_Z);
|
|
};
|
|
|
|
#endif
|