try to correct commander_atan - not working
This commit is contained in:
parent
1edbc97844
commit
05bbe16f37
1 changed files with 2 additions and 2 deletions
|
@ -106,12 +106,12 @@ class Run
|
|||
{
|
||||
if(msg->normal.z > 0)
|
||||
{
|
||||
in.y = msg->normal.x;
|
||||
in.y = - msg->normal.x;
|
||||
in.x = msg->normal.y;
|
||||
} else
|
||||
{
|
||||
in.y = - msg->normal.x;
|
||||
in.x = - msg->normal.y;
|
||||
in.x = msg->normal.y;
|
||||
}
|
||||
in.z = msg->altitude - neutral_z;
|
||||
in.th = msg->angle;
|
||||
|
|
Loading…
Reference in a new issue