Commit Graph

186 Commits

Author SHA1 Message Date
Randy Mackay
10d6a9a34e Copter: replace Log_Write_Motors with Log_Write_RCOU 2013-11-27 20:18:18 +09:00
Randy Mackay
af657d58b9 Copter: RCIN dataflash logging 2013-11-27 16:46:25 +09:00
Andrew Tridgell
21eac34cd1 Copter: log system ID if available 2013-11-26 13:00:03 +11:00
Randy Mackay
965af43121 Copter: add INAV error count to PM dataflash msg 2013-11-21 17:02:04 +09:00
Randy Mackay
7dd4ab835f Copter: CURR dataflash msg to output throttle_out
Previously it was outputting throttle-in which is not as useful in
autonomous modes
2013-11-18 13:30:48 +09:00
Randy Mackay
1359a8fea5 Copter: log INS errors in PM message 2013-11-18 12:16:21 +09:00
Randy Mackay
5cc8772947 Copter: bug fix to Tricopter motor logging
Fourth motor taken from yaw channel's radio_out instead of random
location in memory
2013-11-16 10:48:02 +09:00
Randy Mackay
1f6bc7bd9c Copter: log TradHeli ch7, ch8 in MOT message 2013-11-15 22:58:17 +09:00
Robert Lefebvre
9ae66c1773 TradHeli: add support for drive tail rotors
Repurposed external gyro and made it multi-funcitonal.
required PWM on Ch8 to start the motor in RSC Mode moved up from 100 to 400. This is to facilitate two-stage switching of the motors with PWM>100 starting the tail motor, and PWM>400 starting the main motor.
Additional amendments by Randy
2013-11-15 22:58:04 +09:00
Randy Mackay
46118b59d7 TradHeli: integrate motor lib changes 2013-11-15 22:57:43 +09:00
Andrew Tridgell
6b1f59372c Copter: show git and firmware version in tlog 2013-11-09 10:09:20 +11:00
Tobias
d6d5f0bbe4 Copter: Log.pde: replace unused copy with ref (saves again some bytes) 2013-10-27 13:40:40 +09:00
Andrew Tridgell
92bf4b9c89 Copter: added MAVLink SYSTEM_TIME message 2013-10-24 14:22:47 +11:00
Randy Mackay
ba92c4891a Copter: make AutoTune a compile-time option 2013-10-04 15:50:50 +09:00
Randy Mackay
31cea0140d Copter: Leonard's AutoTuning for Roll and Pitch 2013-10-04 15:50:47 +09:00
Randy Mackay
dab4f032f9 Copter: integrate BattMonitor 2013-10-03 11:16:28 +09:00
Randy Mackay
a53d28e018 Copter: remove support for dmp ahrs 2013-09-27 10:42:49 +09:00
Andrew Tridgell
a06f8a156d Copter: fixed PX4 build 2013-08-19 21:12:41 +10:00
Randy Mackay
2696e160e6 Copter: surface tracking improvement
Separate correction speeds for pilot input vs altitude-above-ground
errors to allow slower correction to sonar signals.
Change SONAR_GAIN parameter to be altitude error -> desired speed.  This
means it should be set 10x larger than before.
Replace hard-coded sonar cut-off percentage of 70% with
SONAR_RELIABLE_DISTANCE_PCT.
Reduce sonar cut-off percentage to 60%.
Add desired sonar altitude to dataflash log's CTUN message.
2013-08-19 09:52:59 +09:00
tobias
4e73cf810e Copter: added cast to remove compiler warning 2013-07-08 12:07:50 +10:00
Randy Mackay
4ad395e7be Copter: merge WPNAV into NTUN dataflash message 2013-05-19 22:53:35 +09:00
Randy Mackay
0a148cce19 Copter: log target alt in meters 2013-05-08 16:41:16 +09:00
Randy Mackay
cca05ee8ae Copter: start dataflash logging when arming
Stop nearly empty logs from being produced.
Removed redundant armed bit from ap state.
2013-05-03 14:49:55 +09:00
Randy Mackay
bab9fa25e5 Copter: add GCS failsafe 2013-04-29 21:30:22 +09:00
Randy Mackay
45aab0de92 Copter: add I2C error count to PM message 2013-04-26 22:39:22 +09:00
Andrew Tridgell
9cec664236 Copter: fixed format of PM message log 2013-04-21 23:46:35 +10:00
Andrew Tridgell
02c3083f60 Copter: print flight mode as string 2013-04-20 15:18:22 +10:00
Andrew Tridgell
ce3ee97e73 Copter: removed duplicate print_latlon() declarations 2013-04-20 13:57:45 +10:00
Andrew Tridgell
93d075404c Copter: added board voltage to current message 2013-04-20 13:52:37 +10:00
Andrew Tridgell
a0708460a4 Copter: convert to new logging system 2013-04-20 13:52:37 +10:00
Andrew Tridgell
67484a2ea1 Copter: make copter code compatible with the new logging system
not fully converted yet
2013-04-20 13:52:36 +10:00
Randy Mackay
9b351feade Copter: shorted INAV dataflash log message length
Velocities are now output in WPNav message
2013-04-17 22:39:30 +09:00
Randy Mackay
f7524e5741 Copter: remove unnecessary cast to float in Log 2013-04-17 22:35:02 +09:00
Randy Mackay
7c8527e6a6 Copter: resolve compiler warning 2013-04-17 22:14:47 +09:00
Andrew Tridgell
61c2befd4d Copter: fixed logging for new API 2013-04-17 21:34:42 +10:00
Randy Mackay
8fe3e689f4 Copter: add WPNAV log message 2013-04-15 21:54:29 +09:00
Randy Mackay
1ee825ee9a Copter: move alt and wp checking to AC_WPNAV
RTL fix so that if it starts rtl-ing from above 80m it returns home
while descending instead of descending at initial position.
add get and set_target_alt_for_reporting
2013-04-14 10:39:23 +09:00
Randy Mackay
4de5f67a91 Copter: replace wp_nav.get_target_alt with get_destination_alt 2013-04-14 10:38:17 +09:00
Randy Mackay
5b93990e41 Copter: removed next_WP
Use the wp_nav.get_target_alt or controller_desired_alt in it's place
2013-04-14 10:38:07 +09:00
tobias
217b8d7a59 cleanup: use const for struct Location pointers and references
this allows the compiler to generate more efficient code
2013-04-09 12:10:32 +10:00
Randy Mackay
1dcd46bffc Copter: reduce compiler warnings 2013-04-05 22:25:58 +09:00
Randy Mackay
40f6416b3d Copter: update Log_Read_Compass comment 2013-04-02 11:02:14 +09:00
Randy Mackay
f9539384a1 Copter: rename failsafe to failsafe_radio
Makes way for separation of failsafes for throttle, gps and gcs
2013-03-16 17:14:21 +09:00
Randy Mackay
998511f506 Copter: use unsigned long for dataflash log for gps time
Updated some formatting of comments in the same file
2013-03-04 23:13:06 +09:00
Randy Mackay
6b2b69535f Copter: Compass log stores/retrieves motor offsets 2013-03-02 00:03:20 +09:00
Andrew Tridgell
637ecd5279 Copter: updates for new dataflash API 2013-03-01 07:18:26 +11:00
Andrew Tridgell
9a3bd17cfb Copter: fixes for new DataFlash API 2013-03-01 07:18:25 +11:00
Randy Mackay
c8f09ac219 Copter: fix compile error for PX4 re Compass logging 2013-02-25 13:26:58 +09:00
Randy Mackay
cbde042ec5 Copter: remove non-inav loiter and wp controllers
lon_speed, lat_speed changed to float
do_takeoff, do_land now set roll-pitch, yaw and nav modes specifically
removed fast_corners functionality (may need to be reimplemented with
new inertial nav controllers)
2013-02-24 14:41:52 +09:00
Randy Mackay
609676e26c Copter: add logging of compass values
Removed rarely used ITERM because we didn't have enough bits in the log
mask
2013-02-24 14:41:48 +09:00