Skip to content

Commit

Permalink
fix some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed May 5, 2017
1 parent 802abf0 commit 039cd01
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions AirLib/include/vehicles/configs/Px4MultiRotor.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef msr_airlib_vehicles_Px4QuadX_hpp
#define msr_airlib_vehicles_Px4QuadX_hpp
#ifndef msr_airlib_vehicles_Px4MultiRotor_hpp
#define msr_airlib_vehicles_Px4MultiRotor_hpp

#include "controllers/MavLinkDroneController.hpp"
#include "controllers/Settings.hpp"
Expand Down
6 changes: 5 additions & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ drone starts to land. This is the default behavior of PX4 when offboard mode co
set this PX4 parameter:
````
param set COM_OBL_ACT 1
````
````

### Can I build a hexacopter with AirSim?

Definitely, see [how to build a hexacopter](hexacopter.md).
6 changes: 3 additions & 3 deletions docs/hexacopter.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ static void initializeRotorHexX(vector<RotorPose>& rotor_poses /* the result we
````

Now the Vector3r parameters above may need some explanation. The first motor labelled (0) above is on the y-axis, so it's
vector is obvious `Vector3r(0, arm_lengths[0], rotor_z)` shoing 0 on the x-axis and the arm length on the y-axis.
vector is obvious `Vector3r(0, arm_lengths[0], rotor_z)` showing 0 on the x-axis and the arm length on the y-axis.
The second motor labelled (1) is also obvious. But what about motor (2).
`
VectorMath::rotateVector(Vector3r(arm_lengths[2], 0, rotor_z), quadx_rot, true)
`
This has x-axis set to armlength and y-axis set to zero, which means it starts out pointing straight up in the above picture.
Then we apply a rotation of pi/6. But the rotation is using the left handed rotation rule
on a NED (z is down) mode, so hold your left hand out, with thumb pointing down, bend your fingers, this is the direction of rotation,
on a NED coordinate system where z is down, so hold your left hand out, with thumb pointing down, bend your fingers, this is the direction of rotation,
namely, counter clockwise. So the arm pointing up, rotates into the position shown for motor (2). Same for the other arms
and now our physics is correctly setup for flying hexacopter.
and now our physics is correctly setup for flying hexacopter. Of course you can also increase the mass, and tweak the motor thrust parameters if needed.

# Rendering

Expand Down
9 changes: 8 additions & 1 deletion docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ of all mavlink commands to and from the PX4.
MavLinkTest -server:127.0.0.1:14550 -logdir:d:\temp
````

Sometimes you will also want to log the "output" from the Simulator that is being sent to the PX4.
Specifically this will capture the "hilgps" and "hilsensor" messages that are generated by the
Simulator. To do that run this as well:
````
MavLinkTest -server:127.0.0.1:14389 -logdir:d:\temp\output
````

You will then see log files organized by date in d:\temp\logs. Please include the specific
*input.mavlink and *output.mavlink files in a zip file and attach those to the issue report.

Expand All @@ -33,4 +40,4 @@ it should look something like this `INFO [logger] Opened log file: rootfs/fs/mi

5. If you are using Pixhawk hardware in HIL mode, then please setthis parameter: SYS_LOGGER=1
using QGroundControl, then after the experiment, download the log file using QGroundControl
and zip that and attach it to the issue.
and zip that and attach it to the issue.

0 comments on commit 039cd01

Please sign in to comment.