From c3de56ba9469f327d295c300b70266f9148356a8 Mon Sep 17 00:00:00 2001 From: uncrustify Date: Thu, 16 Aug 2012 23:19:56 -0700 Subject: [PATCH] uncrustify libraries/AP_InertialSensor/AP_InertialSensor.h --- .../AP_InertialSensor/AP_InertialSensor.h | 81 ++++++++++--------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.h b/libraries/AP_InertialSensor/AP_InertialSensor.h index 22f986ae8b..6e6ae88a30 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor.h @@ -10,57 +10,58 @@ */ class AP_InertialSensor { - public: - AP_InertialSensor() {} +public: + AP_InertialSensor() { + } - virtual uint16_t init( AP_PeriodicProcess * scheduler ) = 0; + virtual uint16_t init( AP_PeriodicProcess * scheduler ) = 0; - /* Update the sensor data, so that getters are nonblocking. - * Returns a bool of whether data was updated or not. - */ - virtual bool update() = 0; + /* Update the sensor data, so that getters are nonblocking. + * Returns a bool of whether data was updated or not. + */ + virtual bool update() = 0; - // check if the sensors have new data - virtual bool new_data_available(void) = 0; + // check if the sensors have new data + virtual bool new_data_available(void) = 0; - /* Getters for individual gyro axes. - * Gyros have correct coordinate frame and units (degrees per second). - */ - virtual float gx() = 0; - virtual float gy() = 0; - virtual float gz() = 0; + /* Getters for individual gyro axes. + * Gyros have correct coordinate frame and units (degrees per second). + */ + virtual float gx() = 0; + virtual float gy() = 0; + virtual float gz() = 0; - /* Same data as above gyro getters, written to array as { gx, gy, gz } */ - virtual void get_gyros( float * ) = 0; + /* Same data as above gyro getters, written to array as { gx, gy, gz } */ + virtual void get_gyros( float * ) = 0; - /* Getters for individual accel axes. - * Accels have correct coordinate frame ( flat level ax, ay = 0; az = -9.81) - * and units (meters per second squared). - */ - virtual float ax() = 0; - virtual float ay() = 0; - virtual float az() = 0; + /* Getters for individual accel axes. + * Accels have correct coordinate frame ( flat level ax, ay = 0; az = -9.81) + * and units (meters per second squared). + */ + virtual float ax() = 0; + virtual float ay() = 0; + virtual float az() = 0; - /* Same data as above accel getters, written to array as { ax, ay, az } */ - virtual void get_accels( float * ) = 0; + /* Same data as above accel getters, written to array as { ax, ay, az } */ + virtual void get_accels( float * ) = 0; - /* Same data as above accel and gyro getters, written to array as - * { gx, gy, gz, ax, ay, az } - */ - virtual void get_sensors( float * ) = 0; + /* Same data as above accel and gyro getters, written to array as + * { gx, gy, gz, ax, ay, az } + */ + virtual void get_sensors( float * ) = 0; - /* Temperature, in degrees celsius, of the gyro. */ - virtual float temperature() = 0; + /* Temperature, in degrees celsius, of the gyro. */ + virtual float temperature() = 0; - /* sample_time returns the delta in microseconds since the - * last call to reset_sample_time. - */ - virtual uint32_t sample_time() = 0; - virtual void reset_sample_time() = 0; + /* sample_time returns the delta in microseconds since the + * last call to reset_sample_time. + */ + virtual uint32_t sample_time() = 0; + virtual void reset_sample_time() = 0; - // return the maximum gyro drift rate in radians/s/s. This - // depends on what gyro chips are being used - virtual float get_gyro_drift_rate(void) = 0; + // return the maximum gyro drift rate in radians/s/s. This + // depends on what gyro chips are being used + virtual float get_gyro_drift_rate(void) = 0; };