|
|
|
@ -237,9 +237,7 @@ private:
@@ -237,9 +237,7 @@ private:
|
|
|
|
|
uint8_t pre_arm_check : 1; // true if all pre-arm checks (rc, accel calibration, gps lock) have been performed
|
|
|
|
|
uint8_t auto_armed : 1; // stops auto missions from beginning until throttle is raised
|
|
|
|
|
uint8_t logging_started : 1; // true if dataflash logging has started
|
|
|
|
|
uint8_t new_radio_frame : 1; // Set true if we have new PWM data to act on from the Radio
|
|
|
|
|
uint8_t usb_connected : 1; // true if APM is powered from USB connection
|
|
|
|
|
uint8_t rc_receiver_present : 1; // true if we have an rc receiver present (i.e. if we've ever received an update
|
|
|
|
|
uint8_t compass_mot : 1; // true if we are currently performing compassmot calibration
|
|
|
|
|
uint8_t motor_test : 1; // true if we are currently performing the motors test
|
|
|
|
|
uint8_t initialised : 1; // true once the init_ardupilot function has completed. Extended status to GCS is not sent until this completes
|
|
|
|
@ -360,9 +358,6 @@ private:
@@ -360,9 +358,6 @@ private:
|
|
|
|
|
int32_t quarter_turn_count; |
|
|
|
|
uint8_t last_turn_state; |
|
|
|
|
|
|
|
|
|
// filtered pilot's throttle input used to cancel landing if throttle held high
|
|
|
|
|
LowPassFilterFloat rc_throttle_control_in_filter; |
|
|
|
|
|
|
|
|
|
// 3D Location vectors
|
|
|
|
|
// Current location of the Sub (altitude is relative to home)
|
|
|
|
|
Location_Class current_loc; |
|
|
|
@ -484,7 +479,7 @@ private:
@@ -484,7 +479,7 @@ private:
|
|
|
|
|
void perf_update(void); |
|
|
|
|
void fast_loop(); |
|
|
|
|
void rc_loop(); |
|
|
|
|
void throttle_loop(); |
|
|
|
|
void fifty_hz_loop(); |
|
|
|
|
void update_mount(); |
|
|
|
|
void update_trigger(); |
|
|
|
|
void update_batt_compass(void); |
|
|
|
@ -715,7 +710,6 @@ private:
@@ -715,7 +710,6 @@ private:
|
|
|
|
|
void init_rc_in(); |
|
|
|
|
void init_rc_out(); |
|
|
|
|
void enable_motor_output(); |
|
|
|
|
void read_radio(); |
|
|
|
|
void init_joystick(); |
|
|
|
|
void transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t z, int16_t r, uint16_t buttons); |
|
|
|
|
void handle_jsbutton_press(uint8_t button,bool shift=false,bool held=false); |
|
|
|
@ -723,7 +717,6 @@ private:
@@ -723,7 +717,6 @@ private:
|
|
|
|
|
JSButton* get_button(uint8_t index); |
|
|
|
|
void default_js_buttons(void); |
|
|
|
|
void set_throttle_zero_flag(int16_t throttle_control); |
|
|
|
|
void radio_passthrough_to_motors(); |
|
|
|
|
void init_barometer(bool save); |
|
|
|
|
void read_barometer(void); |
|
|
|
|
void init_rangefinder(void); |
|
|
|
|