Ricardo de Almeida Gonzaga
7033e4d8ed
AP_HAL_Linux: OpticalFlow swap crop and scale order
...
In order to be easier to understand the image manipulation for the ones
who read this part, since the order makes no difference in this stage.
9 years ago
Ricardo de Almeida Gonzaga
cbb313ec2c
AP_HAL_Linux: Fix OpticalFlow crop calculation
...
'left' value should be the lateral edges size
9 years ago
Andrew Tridgell
9123ef9f38
RC_Channel: added find_channel() and channel numbers
9 years ago
Andrew Tridgell
d31ba2b380
AP_Motors: added rc_write function
...
this is intended to make remapping motors and rescaling output easier
9 years ago
Andrew Tridgell
79c90d37f6
AP_Motors: apply HELI_RSC output type if available
9 years ago
Andrew Tridgell
6a58264c6b
RC_Channel: added set_aux_channel_default() API
...
this will allow for a default channel for aux functions. Also adds
heli_rsc and heli_tail_rsc functions
9 years ago
Randy Mackay
ccd3725f63
AP_Mount_Servo: remove out of date comment
9 years ago
Andrew Tridgell
e1f4814068
AP_Motors: only set output side of range for RSC
9 years ago
Andrew Tridgell
7cc53b6449
RC_Channel: setup only in or out part of channels for aux channels
...
this allows separate use of input and output
9 years ago
Andrew Tridgell
48b774bc63
RC_Channel: allow more complete separation of input and output of channels
...
this allows for the type and range of channels to be different on
input and output
9 years ago
Andrew Tridgell
0ef61b1637
AP_NavEKF: moved ENABLE param to front of list
...
and mark as FLAG_ENABLE. This removes the EKF_* parameters when
EKF_ENABLE is 0
9 years ago
Andrew Tridgell
ac64effc74
AP_Param: allow group entries in any order
...
this will make the ENABLE flag more useful
9 years ago
Andrew Tridgell
57f580fdfc
AP_Param: enable param debug by default
9 years ago
Andrew Tridgell
60af7a6087
AP_Math: removed matrix3 parameter support
9 years ago
Andrew Tridgell
1b8cf84801
AP_Param: allow for up to 512 top level vehicle parameters
...
this will make life a bit easier for copter
9 years ago
Andrew Tridgell
0831661b3c
AP_NavEKF2: mark EK2_ENABLE as an ENABLE parameter
9 years ago
Andrew Tridgell
29cb0dcf2c
AP_Param: enable variables to be marked as enable variables
...
used to hide unused subtrees of variables
9 years ago
Andrew Tridgell
37b2e23322
AP_Param: allow objects containing parameters to be dynamically loaded
...
this makes it possible for objects containing parameters to be
dynamically loaded.
9 years ago
Andrew Tridgell
2dd8a0af74
HAL_SITL: allow visualisation of quad motor speeds in flightgear
9 years ago
Andrew Tridgell
c3829dfb64
AP_Scheduler: allow for arbitrary loop rates
...
it turns out 300Hz is pretty useful as it allows for triple EKF on
pixhawk
9 years ago
Andrew Tridgell
27b43f4036
AC_PID: fixed example build warning
9 years ago
Andrew Tridgell
1450f33b51
HAL_SITL: support 16 RC input channels in SITL
9 years ago
Andrew Tridgell
0966398d8d
SITL: improved realism of fixed wing sim somewhat
...
still not good, but a bit better for manual flight
9 years ago
Andrew Tridgell
83c8505b3c
HAL_SITL: send state to flightgear viewer
9 years ago
Lucas De Marchi
f3ee7a9a85
AP_AccelCal: use union instead of reference
...
The current approach to access the same memory location by using a
reference is giving this warning:
../libraries/AP_AccelCal/AccelCalibrator.cpp: In constructor ‘AccelCalibrator::AccelCalibrator()’:
../libraries/AP_AccelCal/AccelCalibrator.cpp:34:64: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
_param_struct(*reinterpret_cast<struct param_t *>(&_param_array))
^
../libraries/AP_AccelCal/AccelCalibrator.cpp: In member function ‘void AccelCalibrator::run_fit(uint8_t, float&)’:
../libraries/AP_AccelCal/AccelCalibrator.cpp:336:79: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
struct param_t &fit_param(*reinterpret_cast<struct param_t *>(¶m_array));
^
Using a union allows us to get rid of the warning, make sure the sizes of the
different structs match and have a more elegant solution.
9 years ago
Tom Pittenger
841f34effa
AP_Arming: add param for accel error threshold
...
This is the threshold error to determine inconsistent accelerometers.
9 years ago
Andrew Tridgell
b2745bb545
AP_InertialSensor: we only need peak hold for negative X for now
9 years ago
Tom Pittenger
3aaf2b1d2b
AP_InertialSensor: add pos/neg peak detector
...
new functions that get a filtered min/max accel peaks on each axis with fixed 500ms timeout:
Vector3f get_accel_peak_hold_pos()
Vector3f get_accel_peak_hold_neg()
This allows slower mechanisms, such as is_flying, to detect accel spikes which would indicate ground or object impacts. Vibe is too filtered. Independent positive and negative peaks are available
9 years ago
Andrew Tridgell
b052959c61
GCS_MAVLink: re-generated headers
9 years ago
Jonathan Challinger
c2b4235662
GCS_MAVLink: merge mavlink-solo
9 years ago
Jonathan Challinger
41c881cc9e
GCS_MAVLink: temporarily remove GIMBAL_ and GOPRO_ messages pending solo sync
9 years ago
Jonathan Challinger
2a3fe35731
GCS_MAVLink: run xmlpretty.py on ardupilotmega.xml
9 years ago
Andrew Tridgell
22873ee687
SITL: reduced drag in plane model
9 years ago
Andrew Tridgell
619a4c0925
SITL: use common dynamics code for QuadPlane
9 years ago
Andrew Tridgell
33998a58ac
SITL: prevent aircraft going below ground level
9 years ago
Andrew Tridgell
d425965f6d
SITL: expose home yaw to FDMs
9 years ago
Andrew Tridgell
630d4410d4
SITL: removed debug code from QuadPlane
9 years ago
Andrew Tridgell
8a98ce427c
SITL: moved to common code for attitude/pos update
9 years ago
Andrew Tridgell
e6555aae6d
HAL_SITL: added quadplane model
9 years ago
Andrew Tridgell
d0896a1fb2
HAL_SITL: fixed init of channel 8 out in plane and rover
...
should be low
9 years ago
Andrew Tridgell
f2c8193f8b
SITL: added a QuadPlane model
9 years ago
Andrew Tridgell
6f9e9d761f
SITL: move calculations into multicopter frame class
...
this will enable a QuadPlane model
9 years ago
Andrew Tridgell
c6b6d7137d
HAL_SITL: added plane simulator
9 years ago
Andrew Tridgell
16e0a6d7b0
AP_Math: fixed angle between two vector3s
9 years ago
Andrew Tridgell
fcfd11ef53
SITL: very simple fixed wing simulator
...
useful for debugging
9 years ago
Randy Mackay
bea69521c8
AC_PrecLand: velocity PI controller into parent class
9 years ago
Andrew Tridgell
8e4586b4a2
AP_Param: allow for nested groups without subclassing
...
this allows for param tables containing other unrelated objects
9 years ago
Tom Pittenger
4e4c1831f0
AP_ADSB: added guided mode handling
9 years ago
Randy Mackay
4e9f82a0e7
Notify: fix parameter description
9 years ago
pepevalbe
0d5e59eaa3
AP_Notify: configurable RGB LED brightness
9 years ago