@ -198,6 +198,9 @@ byte command_may_ID; // current command ID
@@ -198,6 +198,9 @@ byte command_may_ID; // current command ID
float altitude_gain; // in nav
float distance_gain; // in nav
float sin_yaw_y;
float cos_yaw_x;
// Airspeed
// --------
int airspeed; // m/s * 100
@ -221,6 +224,8 @@ float crosstrack_error; // meters we are off trackline
@@ -221,6 +224,8 @@ float crosstrack_error; // meters we are off trackline
long distance_error; // distance to the WP
long yaw_error; // how off are we pointed
long long_error, lat_error; // temp fro debugging
// Sensors
// -------
float battery_voltage = LOW_VOLTAGE * 1.05; // Battery Voltage of total battery, initialized above threshold for filter
@ -352,8 +357,6 @@ boolean home_is_set = false; // Flag for if we have gps lock and have set th
@@ -352,8 +357,6 @@ boolean home_is_set = false; // Flag for if we have gps lock and have set th
// IMU variables
// -------------
float G_Dt = 0.02; // Integration time for the gyros (DCM algorithm)