Commit Graph
16 Commits
Author SHA1 Message Date
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