uncorrelated small fixes

This commit is contained in:
kirkscheper
2017-10-19 15:47:14 +02:00
parent 93a9608c3b
commit 1b754cd3a1
4 changed files with 5 additions and 5 deletions
@@ -528,7 +528,7 @@ void guidance_v_guided_run(bool in_flight)
case GUIDANCE_V_GUIDED_MODE_THROTTLE:
// Throttle
guidance_v_z_sp = stateGetPositionNed_i()->z; // for display only
stabilization_cmd[COMMAND_THRUST] = guidance_v_th_sp;
guidance_v_delta_t = guidance_v_th_sp;
break;
default:
break;
@@ -586,7 +586,7 @@ bool guidance_v_set_guided_th(float th)
/* reset guidance reference */
GuidanceVSetRef(stateGetPositionNed_i()->z, stateGetSpeedNed_i()->z, 0);
guidance_v_th_sp = ((float)MAX_PPRZ) * th;
guidance_v_th_sp = (int32_t)(MAX_PPRZ * th);
Bound(guidance_v_th_sp, 0, MAX_PPRZ);
return true;
}
+1 -1
View File
@@ -34,7 +34,7 @@
struct stereocam_t {
struct link_device *device; ///< The device which is uses for communication
struct pprz_transport transport; ///< The transport layer (PPRZ)
struct FloatRMat body_to_cam; ///< IMU to magneto translation
struct FloatRMat body_to_cam; ///< IMU to stereocam rotation
bool msg_available; ///< If we received a message
};
+1 -1
View File
@@ -28,7 +28,7 @@
#define IMU_ARDRONE2_H_
#include "generated/airframe.h"
#include "navdata.h"
#include "boards/ardrone/navdata.h"
/** default gyro sensitivy and neutral from the datasheet
+1 -1
View File
@@ -249,7 +249,7 @@ class ParrotUtils:
# Remove a directory
def remove_directory(self, name):
self.sexecute_command('rm -r ' + name)
self.execute_command('rm -r ' + name)
print('Removed directory "' + name + '"')
# Upload a new file