Skip to content

Commit

Permalink
Move variable initializations out of constructor into declarations an…
Browse files Browse the repository at this point in the history
…d eliminate goto statements. Rename adis16448.cpp/h to ADIS16448.cpp/h. Added ADIS16448_accel.cpp/h, ADIS16448_gyro.cpp/h, ADIS16448_mag.cpp/h, and added ADIS16448_accel class to standardize inheriting classes.
  • Loading branch information
mcsauder committed May 24, 2019
1 parent f58079b commit 0425df1
Show file tree
Hide file tree
Showing 13 changed files with 2,080 additions and 1,866 deletions.
12 changes: 6 additions & 6 deletions src/drivers/drv_accel.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@

/** accel scaling factors; Vout = Vscale * (Vin + Voffset) */
struct accel_calibration_s {
float x_offset;
float x_scale;
float y_offset;
float y_scale;
float z_offset;
float z_scale;
float x_offset;
float y_offset;
float z_offset;
float x_scale;
float y_scale;
float z_scale;
};
/*
* ioctl() definitions
Expand Down
12 changes: 6 additions & 6 deletions src/drivers/drv_gyro.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@

/** gyro scaling factors; Vout = (Vin * Vscale) + Voffset */
struct gyro_calibration_s {
float x_offset;
float x_scale;
float y_offset;
float y_scale;
float z_offset;
float z_scale;
float x_offset;
float y_offset;
float z_offset;
float x_scale;
float y_scale;
float z_scale;
};

/*
Expand Down
12 changes: 6 additions & 6 deletions src/drivers/drv_mag.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@

/** mag scaling factors; Vout = (Vin * Vscale) + Voffset */
struct mag_calibration_s {
float x_offset;
float x_scale;
float y_offset;
float y_scale;
float z_offset;
float z_scale;
float x_offset;
float y_offset;
float z_offset;
float x_scale;
float y_scale;
float z_scale;
};

/*
Expand Down
Loading

0 comments on commit 0425df1

Please sign in to comment.