Pierre Kancir
f3e40b4906
AP_Mount: pass mavlink_message_t by const reference
6 years ago
Michael du Breuil
2d161e3594
AP_Mount: Remove unneeded headers
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
178d26f8e3
AP_Mount: add general function for handling mavlink messages
...
AP_Mount: const parameters, add overrides, remove bad virtual declarations
AP_Mount: use AHRS singleton
AP_Mount: make status_msg pure-virtual and add override keyword
AP_Mount: handle deprecated mavlink control and configure msgs
AP_Mount: handle MAV_CMD_DO_MOUNT_CONFIGURE
AP_Mount: rename status_msg method to send_mount_status
6 years ago
Peter Barker
4ae6aeed7e
AP_Mount: add singleton
6 years ago
Peter Barker
0652c89844
AP_Mount: use dataflash singleton
...
Closes #7550
7 years ago
Andrew Tridgell
3d2c81ff05
AP_Mount: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
563f9bfe89
AP_Mount: add static create method
7 years ago
Lucas De Marchi
b3d8c0fc08
AP_Mount: use DataFlash_Class::instance()
...
Instead of requiring DataFlash_Class reference to be passed
on the init() function, get it from the singleton directly.
7 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Lucas De Marchi
3a771bf0e3
AP_Mount: replace header guard with pragma once
9 years ago
Jonathan Challinger
5b834330cb
AP_Mount: merge SoloGimbal from solo master
9 years ago
Lucas De Marchi
ad094b9073
AP_Mount: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
Randy Mackay
fa0aa6f5c9
Mount: remove support for do-mount-configure as command long
...
Also fix bug in do-mount-control so that do-mount-control can switch mount into retract mode
Also removes ability to set which axis are stabilized through
ardupilotmega mount_configure message
10 years ago
squilter
cc58ec917c
Mount: add support for do_mount_control via command_long
10 years ago
Lucas De Marchi
2011c4d988
AP_HAL_Mount: standardize inclusion of libaries headers
...
Do the missing header changes due to changing the code before the pr
getting accepted.
10 years ago
Gustavo Jose de Sousa
8011579c5a
AP_Mount: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Randy Mackay
72eb25b166
Mount: add SToRM32 serial to front end
10 years ago
Arthur Benemann
4bdf909bbf
AP_Mount: Create new copter parameters to hold gimbal settings
10 years ago
Randy Mackay
8a3a7bdcd1
Mount: add set_angle_target method
10 years ago
Jonathan Challinger
dff899647f
AP_Mount: use AP_AHRS_TYPE instead of AP_AHRS_MOUNT
10 years ago
Randy Mackay
23f0bab5d6
Mount: integrate SToRM32 backend
10 years ago
Andrew Tridgell
2f3b5006e7
AP_Mount: fixed build of example sketches
10 years ago
Andrew Tridgell
da27a8696d
AP_Mount: added initial ekf estimation of gimbal bias
...
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
10 years ago
Andrew Tridgell
01b264951a
AP_Mount: added handling of GIMBAL_REPORT messages
10 years ago
Randy Mackay
4a4387530a
Mount: remove unused num_instances
10 years ago
Randy Mackay
886cc9aa46
Mount: use SerialManager for init
10 years ago
Randy Mackay
acbcf3c54e
Mount: backends use reference to their state
10 years ago
Matthias Badaire
0b88f15a37
AP_Mount: fix Backend enum for AP_Mount_Alexmos and add comments
...
fix Backend enum for AP_Mount_Alexmos and add comments
10 years ago
Matthias Badaire
6e5e438b0f
AP_Mount: Make use of the new AP_Mount_Alexmos backend
...
This is adding AP_Mount_Alexmos as one of the available backend
10 years ago
Randy Mackay
ef719b145b
Mount: rename MODE to DFLT_MODE, move set_mode to backend
10 years ago
Randy Mackay
88db50c3a7
Mount: parent class becomes front-end
10 years ago
Arthur Benemann
f7f9bedc38
AP_Mount: update the status_msg() method to match the new definition
10 years ago
Jason Short
7ee5b58535
AP_Mount: Axis mask speedup
...
Using a simple bit mask to avoid calculating an unneeded ATAN2() for AVR users.
10 years ago
Jonathan Challinger
d03ed7a2c3
AP_Mount: Added lead filter
10 years ago
Randy Mackay
039f4740ce
Mount: correct comment on set_mode_to_default time
11 years ago
svefro
be9bfc5530
Mount: set_mode method made public
11 years ago
Michael Oborne
30a3927ea8
AP_Mount: fix where status_msg() is sent
...
send to the channel where the trigger msg was sent from
11 years ago
Andrew Tridgell
eb67948171
AP_Mount: convert to new GPS API
11 years ago
Randy Mackay
1c457d8448
Mount: add get_mode and set_mode_to_default methods
11 years ago
Andrew Tridgell
4de2a654ab
AP_Mount: changed ahrs to be a const reference
...
saves a bit of code
11 years ago
Andrew Tridgell
1cc02836a0
AP_Mount: fixed indent-tabs-mode
12 years ago
tobias
217b8d7a59
cleanup: use const for struct Location pointers and references
...
this allows the compiler to generate more efficient code
12 years ago
Pat Hickey
6cc231ae7d
AP_Mount: ported to AP_HAL
...
I do not have the hardware required to test this
12 years ago
Andrew Tridgell
f41270a3ce
AP_Mount: updated for new RC_Channel_aux API
13 years ago
Amilcar Lucas
7a0c47d049
Improve comment aligment
13 years ago
uncrustify
7ffa44c324
uncrustify libraries/AP_Mount/AP_Mount.h
13 years ago
Amilcar Lucas
0b0b9c29a2
Allow fully independent operation of two AP_Mount instances
13 years ago
Amilcar Lucas
530ea0bebd
AP_Mount: Enable Joystick speed code, now that the framework supports more than 16 parameters per group.
...
Save some bytes by skiping the redundant *_rc_in initialization in the AP_Mount() constructor
13 years ago
Amilcar Lucas
107155fa1a
AP_Mount: Allow using any RC channel to control any of the mount axes.
...
This has the added benefit of saving 60 bytes and simplifying Mission Planner gui.
Moved some code from RC_Channel_aux to AP_Mount class
The servos get written by the update_mount_position() function, this simplifies main()
PS: The beauty of using libraries: I did not have to touch a single line of ArduPlane's code!
13 years ago