Lucas De Marchi
c75704bde3
AP_HAL_Linux: VideoIn: follow coding style and minor fixes
...
- No need to if/else if just returning
- Sort includes
- Fix missing space in log message
- When closing the fd, set it to -1. It's better to later fail the
operation than to operate on another random file descriptor
- Add some spaces to improve readability
- Use pragma once
- Do not initialize members to zero, it's already the behavior for our
custom allocator
2015-12-18 17:56:05 +11:00
Julien BERAUD
25df4d03ff
AP_HAL_Linux: Add support for Video Input
...
VideoIn class is created that allows to setup a v4l2 interface
and capture buffers. I is based on yavta utility by Laurent Pinchart
and has been tested only on the bebop, though yavta works on any linux
platform.
2015-12-18 17:56:04 +11:00
Lucas De Marchi
24d20f89c4
AP_HAL_Linux: make CameraSensor follow coding style
...
- Replace tabs with spaces
- Sort includes
- No need to ifdef Linux inside AP_HAL_Linux
- Use early returns on error rather than a chain o if/else
- Use pragma once
- No need to initialize class members to 0, it's already our default
behavior
2015-12-18 17:56:04 +11:00
Julien BERAUD
c84d9bf702
AP_HAL_Linux: Add support for mt9v117 camera
...
The camera sensor is connected on i2c bus for config
and on a parallel bus on the main SoC.
Currently, the i2c driver remains userland, but this is intended to
change in the future. The v4l2_subdev part is the way to go in the future
and it is the mainline way of configuring i2c camera sensors on Linux.
Currently only the max framerate is supported because it is the one that
is to be used on the bebop optical flow.
2015-12-18 17:56:04 +11:00
Julien BERAUD
736f78a7a2
AP_HAL_VRBRAIN: add empty optical flow
...
No onboard optical flow on VRBRAIN
2015-12-18 17:56:04 +11:00
Julien BERAUD
d8bcb36530
AP_HAL_SITL: add empty optical flow
...
No embedded optical flow on sitl
2015-12-18 17:56:04 +11:00
Julien BERAUD
c0f65ff6e1
AP_HAL_PX4: add empty optical flow
...
No onboard optical flow on PX4
2015-12-18 17:56:04 +11:00
Lucas De Marchi
0e29a7193a
AP_HAL_FLYMAPLE: replace tabs with spaces in HAL_FLYMAPLE_Class
2015-12-18 17:56:04 +11:00
Lucas De Marchi
d08d7ce125
AP_HAL_FLYMAPLE: fix indentation
2015-12-18 17:56:04 +11:00
Julien BERAUD
c114ad2b95
AP_HAL_FLYMAPLE: add empty optflow driver
...
no embedded optical flow on flymaple
2015-12-18 17:56:04 +11:00
Lucas De Marchi
e825eb12f5
AP_HAL_Empty: follow coding style
...
- Add some spaces
- Use pragma once
- Remove ; from method implementation
- Remove unneeded return
2015-12-18 17:56:04 +11:00
Lucas De Marchi
b3a751a199
AP_HAL_Empty: sort include headers
2015-12-18 17:56:03 +11:00
Julien BERAUD
d14f4104ea
AP_HAL_Empty: add support for OpticalFlow
...
Void driver
2015-12-18 17:56:03 +11:00
Lucas De Marchi
c7668479bb
AP_HAL: follow coding style
2015-12-18 17:56:03 +11:00
Julien BERAUD
2b681f2f13
AP_HAL: Add support for an Optflow driver
...
This is meant to be used for onboard optical flow
2015-12-18 17:56:03 +11:00
Tom Pittenger
d003e24189
AP_ADSB: fix unit conversion
2015-12-18 13:49:47 +09:00
José Roberto de Souza
63e1d0753e
AP_Notify: Add a new RGBLed implementation that works over RCOutput
...
To be used in boards that uses the same PWM chip to generate signal to
control motors and the status led.
2015-12-16 08:18:17 +11:00
José Roberto de Souza
d74bd533c8
AP_Math: Add function to convert frequency to/from microseconds
2015-12-16 08:18:17 +11:00
José Roberto de Souza
38575dd87a
AP_Math: Fix parameter name in nsec_to_hz()
2015-12-16 08:18:17 +11:00
Julien BERAUD
a27d7f8a93
AP_InertialSensor_MPU6000: Fix FIFO reset
...
Change the sequence. Previous sequence was sometimes causing failure
to initialize the IMU.
2015-12-16 08:16:10 +11:00
Julien BERAUD
514b60cf5e
Tools: add bebop build to travis
2015-12-15 18:59:03 +09:00
Andrew Tridgell
0a36503742
HAL_Linux: fixed a bug with UDP packetisation
...
this fixes a bug where we would send UDP MAVLink packets larger than 300 bytes
2015-12-14 18:27:11 +11:00
Randy Mackay
4f612f5d69
Frame_params: Bebop2 parameters
...
Rate PIDs are taken from original bebop which are slightly too high
2015-12-14 11:51:34 +09:00
Randy Mackay
8be0f9371f
Frame_params: update recommended Bebop parameters
2015-12-14 11:49:00 +09:00
Jonathan Challinger
0a701088d4
AP_Math: fix bug in Quaternion::operator*=
2015-12-14 11:15:33 +09:00
Peter Barker
326e68544c
DataFlash: remove unused functions
2015-12-10 10:45:51 +09:00
Gustavo Jose de Sousa
eeb4613b0c
waf: call waf always from root in make wrapper
2015-12-10 10:40:40 +09:00
Gustavo Jose de Sousa
c4c9ce6a2a
waf: ardupilotwaf: use name without board extention
...
If the attribute name is passed, then it is the one used to process the option
--target[s] of waf build. The board name should be used only in configuration
time. The build targets should be board/platform agnostic.
Now, instead of using `waf --target ArduCopter.sitl`, we use `waf --target
ArduCopter` and the binary continues named as "ArduCopter.sitl".
2015-12-10 10:40:37 +09:00
Gustavo Jose de Sousa
dc81a2410e
waf: use single entry point for make wrappers
2015-12-10 10:40:34 +09:00
Julien BERAUD
bbf146197c
RCOutput_Bebop : Update motor order
...
Newer esc firmware versions on bebop 1 and all the versions on bebop 2
have a different order for the motors in the i2c frame sent to the
esc contoller. This commit adds support for both versions by reading
the firmware version of the esc, using GET_INFO frame
2015-12-09 20:48:26 +09:00
Randy Mackay
c8661f804f
AC_AttControl: reduce compiler warnings by fixing member init order
...
Also increased _dt's default to 400hz (no functional change)
2015-12-09 20:04:42 +09:00
Randy Mackay
02eda4dcab
AC_AttControl: remove comment, fix formatting
2015-12-09 20:04:32 +09:00
Jonathan Challinger
3c4d226b64
AC_WPNav: call renamed functions in AC_AttitudeControl
2015-12-09 19:58:50 +09:00
Jonathan Challinger
709fcf37cc
Copter: call renamed functions in AC_AttitudeControl
2015-12-09 19:58:49 +09:00
Jonathan Challinger
e8345fbaab
AC_AttitudeControl: rename getters for attitude target and attitude error
2015-12-09 19:58:48 +09:00
Jonathan Challinger
a0b36e0eff
Copter: use renamed functions in AC_AttitudeControl
2015-12-09 19:58:47 +09:00
Jonathan Challinger
3a06edcee3
AC_AttitudeControl: rename local variable to match naming convention
2015-12-09 19:58:46 +09:00
Jonathan Challinger
846ee7d2af
AC_AttitudeControl: fix regression in angular velocity controller
2015-12-09 19:58:45 +09:00
Jonathan Challinger
b8223771d3
AC_AttitudeControl: properly protect sqrt_controller from nonpositive acceleration limits
2015-12-09 19:58:44 +09:00
Jonathan Challinger
0fe0787265
Copter: call renamed AC_AttitudeControl functions
2015-12-09 19:58:43 +09:00
Jonathan Challinger
162d2a9112
AC_AttitudeControl: naming changes in response to Leonard's review
2015-12-09 19:58:42 +09:00
Jonathan Challinger
a48f201a04
AC_AttitudeControl: comment changes in response to Paul's review
2015-12-09 19:58:41 +09:00
Jonathan Challinger
0baf86c485
AC_AttitudeControl: fixup more names
2015-12-09 19:58:39 +09:00
Jonathan Challinger
41e580e53a
AC_AttitudeControl: add input_att_quat_bf_ang_vel and use for ACRO
2015-12-09 19:58:38 +09:00
Jonathan Challinger
dfab21171b
Copter: call renamed functions in AC_AttitudeControl
2015-12-09 19:58:37 +09:00
Jonathan Challinger
5919e95635
AC_AttitudeControl: add input_ prefix to input shaper functions
2015-12-09 19:58:36 +09:00
Jonathan Challinger
bba360ea2b
AC_AttitudeControl: correct bugs found in review
2015-12-09 19:58:35 +09:00
Jonathan Challinger
9208003aab
AC_AttitudeControl: remove unused variable
2015-12-09 19:58:34 +09:00
Jonathan Challinger
f8c709478a
AC_AttitudeControl: quaternion acro controller
2015-12-09 19:58:33 +09:00
Jonathan Challinger
8b886bc479
AC_AttitudeControl: minor comment changes and reorganization
2015-12-09 19:58:32 +09:00