Andrew Tridgell
81c5edbdb5
GCS_MAVLink: fixed a log download bug for repeated downloads
...
we were not resetting the offset to 0 correctly
11 years ago
Andrew Tridgell
dcd7f9d26d
AP_Airspeed: use raw (signed) airspeed
...
this allows us to detect when the user has the ports the wrong way
around, and mark the sensor unhealthy
11 years ago
Andrew Tridgell
1849db7074
AP_HAL: added board_voltage AnalogIn method
...
this makes it easier to get the board voltage from any library,
without having to allocate another analog channel object
11 years ago
Andrew Tridgell
4e2e685d7a
HAL_PX4: better fix for IFLOW on all ports
...
the tcsetattr() call fails to apply the baudrate if the port has no
RTS pin and we ask for IFLOW. So just make a separate call.
11 years ago
Andrew Tridgell
b2cdd39a99
HAL_PX4: don't enable IFLOW on ports without flow control
...
this should have been harmless, but breaks the GPS on Pixhawk. This
disables it until we work out why.
11 years ago
Andrew Tridgell
35791e1f05
AP_Airspeed: fixed get_temperature on PX4
11 years ago
Andrew Tridgell
ccb7dc640d
AP_HAL: fixed a build warning
11 years ago
Andrew Tridgell
c93794999e
HAL_PX4: remove an old conditional define
11 years ago
Andrew Tridgell
8095eb0bee
AP_BoardConfig: added BRD_SAFETYENABLE option
...
this allows the safety switch to be disabled on startup
11 years ago
Andrew Tridgell
439a075b30
AP_HAL: added force_safety_off rcoutput function
...
this forces the safety switch off, enabling PWM on the IO board
11 years ago
Dan Neault
262d384025
Coax: Yaw fix
...
Was using _rc_yaw servo_out instead of pwm_out to modify motors.
Corrected and less touchy in Yaw
11 years ago
Andrew Tridgell
fce464597a
AP_BoardConfig: PX4v1 does not have hw flow control on UART5
11 years ago
Andrew Tridgell
1b5d5dd8c4
AP_BoardConfig: set flow control to AUTO by default
11 years ago
Andrew Tridgell
c5c1d1358a
HAL_PX4: added automatic hardware flow control detection
...
this allows us to detect if hardware flow control is not available and
automatically disable it
11 years ago
Randy Mackay
a0369b85d1
LowPassFilter: make methods non-virtual
...
No classes inherit from this class so no need for set_cutoff_frequency,
set_time_constant and reset(T) to be declared virtual. Saves 6 bytes of
RAM.
11 years ago
Randy Mackay
38222d65e9
DerivativeFilter: update and slope non-virtual
...
No classes inherit from DerivativeFilter so no need to be virtual.
Saves 4bytes of RAM.
11 years ago
Randy Mackay
4040be9990
FilterWithBuffer: make get_sample non-virtual
...
virtual added to apply() and reset() declaration inline with base class.
This should have no impact on memory usage or functionality
11 years ago
Randy Mackay
6cee33b6fd
AP_Curve: remove virtual from method declarations
11 years ago
Randy Mackay
4c38999ca6
Maxsonar Test: remove raw from output to user
11 years ago
Randy Mackay
e1fabadd3c
MaxsonarI2C: read method returns int16_t
11 years ago
Randy Mackay
ab22d11110
MaxsonarRFinder: convert_raw returns int16_t
11 years ago
Randy Mackay
32820b4260
PulsedLightRFinder: read method returns int16_t
11 years ago
Randy Mackay
bf3fa8b99b
RangeFinder: remove raw_value from SharpGP2Y
11 years ago
Randy Mackay
8d54e50897
RangeFinder: remove raw_value, orientation variables
...
This saves 10bytes of RAM
11 years ago
Randy Mackay
d19b566d97
OptFlow: remove unused variables
...
Saves 24bytes RAM by removing several static variables that were used
only for internal calculations
11 years ago
Andrew Tridgell
b907263685
AP_BoardConfig: added BRD_SER1_RTSCTS and BRD_SER2_RTSCTS
...
used to enable flow control on telemetry ports
11 years ago
Andrew Tridgell
3e637ac5d9
AP_HAL: added enable_flow_control() option in AP_HAL
11 years ago
Randy Mackay
c9415a08f1
AC_WPNav: use ahrs trig values
11 years ago
Randy Mackay
98d667c916
AHRS_HIL: call update_trig
11 years ago
Randy Mackay
6946d68318
AHRS_DCM: call update_trig
11 years ago
Randy Mackay
3dc6ea682c
AHRS: add update_trig
...
Calculates helper trig values including cos_roll, cos_pitch
11 years ago
Andrew Tridgell
a95a3142e0
AP_InertialSensor: use fixed size arrays
...
apparently helps SITL build on MacOS
11 years ago
Bill Bonney
82ea5926a8
OptFlow: update function added to fix compiler error
11 years ago
Randy Mackay
14409ee20f
Copter: disable aux channels used for motors
11 years ago
Randy Mackay
7c25247c87
Copter: disable aux channel 7 for SingleCopter
...
Move servo range setup to AP_MotorsSingle
11 years ago
Randy Mackay
9b594dc5e1
Copter: disable aux channel ch7 for Tri
11 years ago
Randy Mackay
1426078cdb
TradHeli: disable aux channels 7 and 8
11 years ago
Paul Riseborough
bc311542ab
AP_TECS : Fixed bug preventing accel launch detection when not using AS sensor
11 years ago
Dneault
5213ec4aa6
Coax: servos to ch1, ch2, motors to ch3, ch4
11 years ago
Randy Mackay
f60d94c4ab
Coax: remove unused servo3, servo4
...
Removed commented out code
11 years ago
Dneault
f48e106271
Copter: add coax heli support
...
Motors should be attached to RCOutputs 1 and 2, Flaps should be connected
to RC outputs 3 and 4
11 years ago
Andrew Tridgell
00d2d5946c
RC_Channel: added disable_aux_channel()
...
this will be used by copter to ensure motor channels are not enabled
for aux functions
11 years ago
Andrew Tridgell
b4208c7fc0
RC_Channel: added flaperon1 and flaperon2 function outputs
11 years ago
Andrew Tridgell
698736b66d
RC_Channel: simplify the setup of aux channels
...
avoid the nasty mess of #if lines, as the info is in the constructor
anyway
11 years ago
Andrew Tridgell
264c092aa6
AP_ServoRelayEvents: fixed disabling repeated events on set_servo()
11 years ago
Randy Mackay
a963ec7e3b
AP_Math: bug fix to wrap_360 and wrap_180
...
angles above 720deg and below 3200deg might not have been properly
wrapped.
wrap_360_cd could return 36000 when really this should be wrapped back
to zero.
11 years ago
Andrew Tridgell
688f61c087
AP_Param: expose check_var_info() as a public symbol
11 years ago
Andrew Tridgell
c0e548fc60
AP_Notify: fixed example build
11 years ago
Andrew Tridgell
93070a673e
AP_Math: fixed example build
11 years ago
Andrew Tridgell
045efdb084
AP_InertialSensor: fixed example builds
11 years ago