Skip to content
Snippets Groups Projects
Commit 406abe1e authored by dawehr's avatar dawehr
Browse files

Quickly adding the yaw, pitch, roll rate PID setters to the quad to make Andy happy (temporarily)

parent 54787dd9
Branches commands-to-make-andy-happy
No related tags found
No related merge requests found
......@@ -137,6 +137,50 @@ int cb_setpitchd(modular_structs_t *structs)
return 0;
}
// rate functions to make Andy happy
int cb_setyawratep(modular_structs_t *structs)
{
structs->parameter_struct.yaw_ang_vel_pid.Kp = uart_buff_data_get_float(0);
return 0;
}
int cb_setyawrated(modular_structs_t *structs)
{
structs->parameter_struct.yaw_ang_vel_pid.Kd = uart_buff_data_get_float(0);
return 0;
}
int cb_setrollratep(modular_structs_t *structs)
{
structs->parameter_struct.roll_ang_vel_pid.Kp = uart_buff_data_get_float(0);
return 0;
}
int cb_setrollrated(modular_structs_t *structs)
{
structs->parameter_struct.roll_ang_vel_pid.Kd = uart_buff_data_get_float(0);
return 0;
}
int cb_setpitchratep(modular_structs_t *structs)
{
structs->parameter_struct.pitch_ang_vel_pid.Kp = uart_buff_data_get_float(0);
return 0;
}
int cb_setpitchrated(modular_structs_t *structs)
{
structs->parameter_struct.pitch_ang_vel_pid.Kd = uart_buff_data_get_float(0);
return 0;
}
int cb_setheight(modular_structs_t *structs)
{
structs->setpoint_struct.desiredQuadPosition.alt_pos = uart_buff_data_get_float(0);
......
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