Commit Graph
29 Commits
Author SHA1 Message Date
Lorenz Meier 8891c94087 Gimbal: remove unuses perf counters 2016-03-28 13:04:25 +02:00
Daniel Agar 26bb2fd22f capitalize param values 2016-03-25 20:38:08 -04:00
Daniel Agar 6888545037 remove @unit enum 2016-03-25 20:33:25 -04:00
Daniel Agar 70a68def83 params correct boolean tag 2016-03-25 20:25:17 -04:00
Daniel Agar 0869d9b1da gimbal param @unit 2016-03-14 09:12:34 +01:00
Daniel Agar 9b7452c09b gimbal param @unit 2016-03-13 18:03:21 +01:00
Stefan c341f94e5d Update gimbal_params.c
spelling mistakes
2016-01-11 08:37:43 +01:00
Andreas Antener 9252414c76 added new parameter to enable/disable enforcing mount operation mode 2015-11-24 23:14:20 +01:00
Andreas Antener 7a31a8b1af implemented VEHICLE_CMD_DO_MOUNT_CONFIGURE and added possibility to set mount mode via RC switch when not in offboard
use output 5 for mount mode (e.g. to support landing gears)
2015-11-24 23:14:20 +01:00
Lorenz Meier 0642624416 gimbal: Fixed code style 2015-10-19 13:16:35 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Lorenz Meier ffc6bb7e85 gimbal driver: Update topic names 2015-05-27 15:21:33 -07:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Mark Charlebois 12a25e4b63 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
	src/modules/commander/module.mk
	src/modules/mavlink/mavlink_ftp.h
	src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
Andreas Antener 86cd484b82 convert -PI to PI attitude range to -1 to 1 for gimbal output 2015-05-04 13:10:58 +02:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Andreas Antener 6a7f12496e fix errors and flag comparison 2015-03-16 10:28:42 +01:00
Andreas Antener 76aed9e58d - implemented configuration with mount config cmd
- remember recieved mount control values
2015-03-13 19:00:16 +01:00
Anton Matosov f8e471d95c Implemented Quaternion position for Gimbal (not tested) 2015-03-06 18:57:38 -08:00
Anton Matosov 7bf6c3bae8 Increased update rate to get rid of glitches in servo movements 2015-03-06 18:57:38 -08:00
Anton Matosov c5bb12be3b Disabled logging of the each componsated value 2015-03-06 18:57:38 -08:00
Anton Matosov c76839df73 Implemented yaw componsation 2015-03-06 18:57:38 -08:00
Anton Matosov 3db6d08b5c Enabled attitude compensation by default as that is all the gimbal driver is about 2015-03-06 18:57:37 -08:00
Anton Matosov 3647b75303 Updated @author 2015-03-06 18:57:37 -08:00
Anton Matosov 72274062c1 Renamed servo_gimbal to simply 'gimbal' as HW is behind the scene and doesn't really matter here 2015-03-06 18:57:37 -08:00