Functions | Variables
fly_from_joy_test_K.cpp File Reference
#include <ros/ros.h>
#include <std_msgs/Empty.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/Joy.h>
#include <geometry_msgs/Vector3.h>
#include <ardrone_autonomy/Navdata.h>
Include dependency graph for fly_from_joy_test_K.cpp:

Go to the source code of this file.

Functions

void joy_callback (const sensor_msgs::Joy &joy_msg_in)
int main (int argc, char **argv)
double map (double value, double in_min, double in_max, double out_min, double out_max)
void merge_new_mgs (void)
void nav_callback (const ardrone_autonomy::Navdata &msg_in)
void test_controller (double vx_des, double vy_des, double vz_des, double Kp, double Kd)

Variables

double cmd_x
double cmd_y
double cmd_z
double drone_ax
double drone_ax_
double drone_ay
double drone_ay_
double drone_az
double drone_az_
int drone_state = 0
double drone_vx
double drone_vx_
double drone_vy
double drone_vy_
double drone_vz
double drone_vz_
std_msgs::Empty emp_msg
float forget = 0.99
int joy_a
int joy_a_
int joy_b
int joy_b_
sensor_msgs::Joy joy_msg_in
double joy_x
double joy_x_
int joy_xbox
int joy_xbox_
double joy_y
double joy_y_
double joy_z
double joy_z_
double Kd = 0.75
double Kp = 0.75
double max_speed = 0.5
int new_msg = 0
geometry_msgs::Twist twist_msg
geometry_msgs::Vector3 v3_msg

Function Documentation

void joy_callback ( const sensor_msgs::Joy &  joy_msg_in)

Definition at line 42 of file fly_from_joy_test_K.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 117 of file fly_from_joy_test_K.cpp.

double map ( double  value,
double  in_min,
double  in_max,
double  out_min,
double  out_max 
)

Definition at line 98 of file fly_from_joy_test_K.cpp.

void merge_new_mgs ( void  )

Definition at line 102 of file fly_from_joy_test_K.cpp.

void nav_callback ( const ardrone_autonomy::Navdata &  msg_in)

Definition at line 56 of file fly_from_joy_test_K.cpp.

void test_controller ( double  vx_des,
double  vy_des,
double  vz_des,
double  Kp,
double  Kd 
)

Definition at line 71 of file fly_from_joy_test_K.cpp.


Variable Documentation

double cmd_x

Definition at line 30 of file fly_from_joy_test_K.cpp.

double cmd_y

Definition at line 30 of file fly_from_joy_test_K.cpp.

double cmd_z

Definition at line 30 of file fly_from_joy_test_K.cpp.

double drone_ax

Definition at line 28 of file fly_from_joy_test_K.cpp.

double drone_ax_

Definition at line 26 of file fly_from_joy_test_K.cpp.

double drone_ay

Definition at line 28 of file fly_from_joy_test_K.cpp.

double drone_ay_

Definition at line 26 of file fly_from_joy_test_K.cpp.

double drone_az

Definition at line 28 of file fly_from_joy_test_K.cpp.

double drone_az_

Definition at line 26 of file fly_from_joy_test_K.cpp.

int drone_state = 0

Definition at line 32 of file fly_from_joy_test_K.cpp.

double drone_vx

Definition at line 27 of file fly_from_joy_test_K.cpp.

double drone_vx_

Definition at line 25 of file fly_from_joy_test_K.cpp.

double drone_vy

Definition at line 27 of file fly_from_joy_test_K.cpp.

double drone_vy_

Definition at line 25 of file fly_from_joy_test_K.cpp.

double drone_vz

Definition at line 27 of file fly_from_joy_test_K.cpp.

double drone_vz_

Definition at line 25 of file fly_from_joy_test_K.cpp.

std_msgs::Empty emp_msg

Definition at line 37 of file fly_from_joy_test_K.cpp.

float forget = 0.99

Definition at line 34 of file fly_from_joy_test_K.cpp.

int joy_a

Definition at line 23 of file fly_from_joy_test_K.cpp.

int joy_a_

Definition at line 21 of file fly_from_joy_test_K.cpp.

int joy_b

Definition at line 23 of file fly_from_joy_test_K.cpp.

int joy_b_

Definition at line 21 of file fly_from_joy_test_K.cpp.

sensor_msgs::Joy joy_msg_in

Definition at line 39 of file fly_from_joy_test_K.cpp.

double joy_x

Definition at line 22 of file fly_from_joy_test_K.cpp.

double joy_x_

Definition at line 20 of file fly_from_joy_test_K.cpp.

int joy_xbox

Definition at line 23 of file fly_from_joy_test_K.cpp.

int joy_xbox_

Definition at line 21 of file fly_from_joy_test_K.cpp.

double joy_y

Definition at line 22 of file fly_from_joy_test_K.cpp.

double joy_y_

Definition at line 20 of file fly_from_joy_test_K.cpp.

double joy_z

Definition at line 22 of file fly_from_joy_test_K.cpp.

double joy_z_

Definition at line 20 of file fly_from_joy_test_K.cpp.

double Kd = 0.75

Definition at line 18 of file fly_from_joy_test_K.cpp.

double Kp = 0.75

Definition at line 17 of file fly_from_joy_test_K.cpp.

double max_speed = 0.5

Definition at line 16 of file fly_from_joy_test_K.cpp.

int new_msg = 0

Definition at line 31 of file fly_from_joy_test_K.cpp.

geometry_msgs::Twist twist_msg

Definition at line 36 of file fly_from_joy_test_K.cpp.

geometry_msgs::Vector3 v3_msg

Definition at line 38 of file fly_from_joy_test_K.cpp.



arl_ardrone_examples
Author(s): parcon
autogenerated on Mon Jan 6 2014 11:03:12