This commit is contained in:
David St-Onge 2017-01-30 18:22:51 -05:00
parent 0f51990bcb
commit 1dfc6ad709
2 changed files with 4 additions and 4 deletions

View File

@ -110,8 +110,8 @@ int buzzuav_goto(buzzvm_t vm) {
goto_cartesian[1] = dy + cur_pos_cartesian[1];
goto_cartesian[2] = cur_pos_cartesian[2];
spherical_coordinates(goto_cartesian, goto_pos);
// goto_pos[0]=cur_pos[0]+dlat*180/M_PI;
// goto_pos[1]=cur_pos[1]+dlon*180/M_PI;
goto_pos[0]=dx;
goto_pos[1]=dy;
goto_pos[2]=height; // force a constant altitude
cur_cmd=mavros_msgs::CommandCode::NAV_WAYPOINT;
printf(" Buzz requested Go To, to Latitude: %.7f , Longitude: %.7f, Altitude: %.7f \n",goto_pos[0],goto_pos[1],goto_pos[2]);

View File

@ -12,11 +12,11 @@ function updated_neigh(){
neighbors.broadcast(updated, update_no)
}
TARGET_ALTITUDE = 10.1
TARGET_ALTITUDE = 10.0
# Lennard-Jones parameters
TARGET = 5.0 #0.000001001
EPSILON = 200.0 #0.001
EPSILON = 80.0 #0.001
# Lennard-Jones interaction magnitude
function lj_magnitude(dist, target, epsilon) {