Andrew Tridgell
340c451caf
Copter: fixed off-by-one in rcmapper
...
oops ...
12 years ago
Andrew Tridgell
725293b9c3
Copter: removed use of rc_ch[] global array
12 years ago
Randy Mackay
213eaa8db6
Copter: integrate draft RCMapper
12 years ago
Randy Mackay
9d0f40b432
Copter: add pre_arm_rc_check
...
Motors are not be enabled unless we have passed rc checks which include
checking the radio in calibration has been performed.
12 years ago
Randy Mackay
31e430948a
Copter: use renamed RCInput valid_channels
12 years ago
Andrew Tridgell
300a8d2bbc
Copter: support all 12 channels on PX4
...
last 4 channels are on the FMU pins
12 years ago
Randy Mackay
b48864e1ad
Copter: allow CH6 tuning of compass declination
12 years ago
Randy Mackay
f9539384a1
Copter: rename failsafe to failsafe_radio
...
Makes way for separation of failsafes for throttle, gps and gcs
12 years ago
Randy Mackay
8af605cafc
Copter: set update rate to 50hz during esc calibration
...
Also modified some comments in the code re the esc calibration
12 years ago
rmackay9
672fdfbf71
ArduCopter: added ERR dataflash message
...
Failsafe events changed to errors so they are more obvious.
Errors recorded to dataflash for failure to init compass and optical flow sensor.
Errors recorded for pwm failure.
Resolved a compile error when dataflash logging is disabled.
12 years ago
Pat Hickey
13c044ab3e
ArduCopter: fixes to radio.pde
12 years ago
Pat Hickey
d9e0bbbbab
ArduCopter: first pass at AP_HAL porting
...
* changed all the byte types to uint8_t
* fixed up much of the serial stuff
12 years ago
rmackay9
d31efebd44
ArduCopter: rename throttle failsafe parameters.
...
Switch to LAND flight mode if throttle failsafe triggers and we do not have a GPS.
THR_FAILSAFE renamed to FS_THR_ENABLE.
THR_FS_VALUE renamed to FS_THR_VALUE.
THR_FS_ACTION removed (action is now controlled by setting FS_THR parameter).
12 years ago
rmackay9
0f7bb79d89
ArduCopter: add comments to tuning parameters.
...
Use RC_CHANNEL types as defined by RC_Channel library.
Remove unused definitions.
12 years ago
Andrew Tridgell
bcae83c4f6
ACM: make it possible to run CLI on radio port in ArduCopter
12 years ago
rmackay9
73ed6c9dbf
ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds
12 years ago
Jason Short
9735a0eff1
ACM: Allow for user defined roll and pitch input max
12 years ago
rmackay9
bcb9519fd7
ArduCopter: renamed system bitmap to ap_system to resolve desktop compile issues
12 years ago
rmackay9
e212744f4c
ArduCopter: failsafe improvements
...
resolves momentary throttle drop to zero before failsafe engages
resolves motor cut after 30seconds if flying in stabilize without GPS (now switches to ALT_HOLD with target altitude zero)
disables motors if throttle was zero before failsafe event
12 years ago
Jason Short
d2a5928c06
Ap state updates
12 years ago
rmackay9
78316adf75
ArduCopter: replace Serial.print with Serial.print_P to save memory.
...
Includes replacing flight_mode_strings with print_flight_mode function.
SendDebug macro replaced with direct Serial.print_P calls.
12 years ago
rmackay9
b876733c0d
ArduCopter: added message to console when entering ESC Calibration on startup
13 years ago
rmackay9
9e66b555cb
ArduCopter: removed INSTANT_PWM from ArduCopter and AP_Motors library
13 years ago
rmackay9
c9d34c1737
ArduCopter: fixes to allow AP_Mount to work on APM1 with original default channels and fix to reenable support for 3-axis gimbals on APM2.
...
Channels 5 to 11 changed to RC_Channel_aux.
Removed channel 9 because APM_RC doesn't support it in any case.
Updated EEPROM format version to 119 because of the change to RC_Channel_aux and because k_param_rc_11 moved to be after k_param_rc_10.
13 years ago
uncrustify
a75d477071
uncrustify ArduCopter/radio.pde
13 years ago
Amilcar Lucas
780b469b11
ArduCopter: Enable the aux servos later, only in the slow periodic loop
...
This might solve some of the boot issues some users are having
13 years ago
Jason Short
e73c0250ad
ACM: Radio.pde - toy mode updates
13 years ago
Amilcar Lucas
d9f1140278
ArduCopter: Use generic channel names for AP_Mount servos.
...
This simplifies mission planner, the same code can be used for plane and copter now.
13 years ago
Amilcar Lucas
b8c7b8a786
RC_Channel: Allow each channel to know who they are, this simplifies the enabling and output function calls.
13 years ago
Amilcar Lucas
9c1ac2d9e6
More work on ch9, 10 and 11
13 years ago
Amilcar Lucas
bbc4bdb729
More flexible RC support
13 years ago
rmackay9
33d8cbfd51
ArduCopter: small bug fix to radio.pde to allow code to compile when MOUNT == DISABLED
13 years ago
rmackay9
761dad4e99
ArduCopter: restored set_range calls for RC_Channels 5 ~ 8.
13 years ago
Amilcar Lucas
dfe0983e1e
Merge the changes from APM_Camera branch into ArduCopter
...
Conflicts:
ArduCopter/Camera.pde
ArduCopter/Parameters.pde
13 years ago
Jason Short
efdf0a7fc8
changed define to a param for throttle_min and throttle_max
13 years ago
Jason Short
c2d14a5cad
RC_Channel fix for throttle output.
...
throttle was outputting incorrectly and allowing the user to max out the throttle leaving nothing for attitude control
13 years ago
Jason Short
15774366ba
Failsafe: Looking for takeoff_complete now vs unreliable GPS
13 years ago
Jason Short
b8349f5486
Added note to functionality
13 years ago
rmackay9
473126581d
ArduCopter - radio.pde - changed motor initialisation to set update rate, frame orientation, min and max throttle to AP_Motors class.
...
Note: perhaps the motors speed at least should be moved to a parameter within the motors class.
output_min function greatly simplified as this is handled by the AP_Motors class.
13 years ago
Randy Mackay
9fabdb5797
TradHeli - change throttle range back to 0~1000 (was temporarily changed to be 1250~850 which limited the range of the swash plate's vertical movements)
13 years ago
Jason Short
ff2b4ecb7a
updated throttle range
13 years ago
Jason Short
9f8d7d5076
Minimize the Yaw Deadzone
13 years ago
Jason Short
2335b74bc3
faster FS timer
13 years ago
Randy Mackay
f3a95ff3cb
Arducopter - Tri - move yaw servo (channel7/motor7/CH_TRI_YAW) to mid point on startup
13 years ago
Pat Hickey
98a90d0352
ArduCopter: Call motors_output_enable at correct spot during init
13 years ago
Jason Short
60e3508f7c
converted to cm
...
Signed-off-by: Jason Short <jasonshort@mac.com>
13 years ago
Jason Short
c4476bdd80
Fixed type error
13 years ago
Jason Short
92f7b22722
Moved failsafe check to more logical place
13 years ago
Pat Hickey
91bc2698a8
ArduCopter radio.pde: translate CH_ to MOT_ outputs
13 years ago
Jason Short
5b66a09688
Added check for armed motors in failsafe
13 years ago