Skip to content
Snippets Groups Projects
Commit 47573c61 authored by James Talbert's avatar James Talbert
Browse files

Merge branch 'groundstation_gui_fd_test' into 41-Transition-current-hardware-platform-to-Vivado

parents 5a24f9e0 29ac705b
No related branches found
No related tags found
No related merge requests found
#include "format_rt.h"
/*
This file contains the method used to format real time data sent to the quad into a text file
that can be read by the Data Analysis Tool located in the controls directory for the purpose
of displaying flight data information to the user.
*/
int write_formatted_data(char * filename, SensorRTFlags_t * flags, uint32_t * data)
{
return 0;
}
DEBUG LEVEL ONE
// Sensor blocks
int cur_pitch;
int cur_roll;
int cur_yaw;
int gyro_y;
int gyro_x;
int gyro_z;
int lidar;
int flow_vel_x; // optical flow
int flow_vel_y;
int flow_vel_x_filt;
int flow_vel_y_filt;
int flow_quality; // Quality value returned by optical flow sensor
int flow_distance;
// Sensor processing
int yaw_correction;
int of_angle_corr; // Corrects for the optical flow mounting angle
int of_integ_x; // Integrates the optical flow data
int of_integ_y;
int of_trim_x; // Trim value for optical flow integrated value
int of_trim_y;
int of_trimmed_x; // Trimmed optical flow integrated value (of_integ_x + of_trim_x)
int of_trimmed_y;
DEBUG LEVEL TWO
// PID blocks
int roll_pid;
int pitch_pid;
int yaw_pid;
int roll_r_pid;
int pitch_r_pid;
int yaw_r_pid;
int x_pos_pid;
int y_pos_pid;
int alt_pid;
DEBUG LEVEL THREE
// Velocity nodes
int x_vel_pid;
int y_vel_pid;
int x_vel;
int y_vel;
int x_vel_clamp;
int y_vel_clamp;
int vel_x_gain;
int vel_y_gain;
// VRPN blocks
int vrpn_x;
int vrpn_y;
int vrpn_alt;
int vrpn_pitch, vrpn_roll;
// RC blocks
int rc_pitch;
int rc_roll;
int rc_yaw;
int rc_throttle;
// Desired positions
int x_set;
int y_set;
int alt_set;
int yaw_set;
DEBUG LEVEL FOUR
// Clamps
int clamp_d_pwmP;
int clamp_d_pwmR;
int clamp_d_pwmY;
int yaw_clamp;
// Loop times
int angle_time;
int pos_time;
// Signal mixer
int mixer;
int throttle_trim;
int throttle_trim_add;
int pitch_trim;
int pitch_trim_add;
int yaw_trim;
int yaw_trim_add;
//psi dot integration chain
int psi_dot;
int psi_dot_offset;
int psi_dot_sum;
int psi;
int psi_offset;
int psi_sum;
int mag_yaw; //Complementary filtered magnetometer/gyro yaw
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment