Commit Graph

504 Commits

Author SHA1 Message Date
Andrew Tridgell
8da72fccba Rover: use common deferred message handling 2014-03-19 12:14:18 +09:00
Andrew Tridgell
c8eafc4d42 Rover: use common MISSION_ITEM handling 2014-03-19 12:14:14 +09:00
Andrew Tridgell
0aafef9f69 Rover: use new common MAVLink message handlers 2014-03-19 12:13:41 +09:00
Randy Mackay
a90a10b0ca Rover: use common GCS_MAVLink handle_mission methods 2014-03-19 12:13:24 +09:00
Andrew Tridgell
c7c8a36620 Rover: use new handle_mission_request() function
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2014-03-19 12:13:13 +09:00
Randy Mackay
de119e07bb Rover: remove do_takeoff, do_change_alt support 2014-03-19 12:13:07 +09:00
Randy Mackay
59555e8364 Rover: revert next_WP, prev_WP to location structures 2014-03-19 12:13:04 +09:00
Randy Mackay
204eb8b7d3 Rover: use mission command specific structure 2014-03-19 12:13:00 +09:00
Randy Mackay
df5c874f73 Rover: fix to support uploading partial missions 2014-03-19 12:12:58 +09:00
Randy Mackay
954e10b26f Rover: integrate dataflash Log_Write_MavCmd 2014-03-19 12:12:48 +09:00
Randy Mackay
9b0ae2fcff Rover: use Dataflash lib's Log_Write_Cmd 2014-03-19 12:12:13 +09:00
Randy Mackay
7ff379850c Rover: integrate variable max num commands 2014-03-19 12:12:05 +09:00
Randy Mackay
fdec917607 Rover: pass eeprom start to Mission constructor 2014-03-19 12:12:04 +09:00
Randy Mackay
7b9c3bf707 Rover: call mission.init during startup 2014-03-19 12:11:50 +09:00
Randy Mackay
923dca0cb8 Rover: Log_Write_Startup checks success of cmd read before logging 2014-03-19 12:11:44 +09:00
Randy Mackay
0a7d33a1da Rover: cli test checks read_cmd success before printing 2014-03-19 12:11:43 +09:00
Randy Mackay
5ccfa247ac Rover: remove unused definitions 2014-03-19 12:11:36 +09:00
Randy Mackay
29340c68bd Rover: Mission integration for cli test 2014-03-19 12:11:34 +09:00
Randy Mackay
1a70ffdeee Rover: Mission integration for ch7 save waypoint 2014-03-19 12:11:33 +09:00
Randy Mackay
c83733048f Rover: Mission integration into dataflash Logging 2014-03-19 12:11:31 +09:00
Randy Mackay
4ca3a92655 Rover: Mission integration into command execution 2014-03-19 12:11:30 +09:00
Randy Mackay
df1b2e1192 Rover: Mission integration with GCS_Mavlink.pde 2014-03-19 12:11:28 +09:00
Randy Mackay
192286f04d Rover: create Mission object 2014-03-19 12:11:27 +09:00
Randy Mackay
26b82cf0a3 Rover: use common location options masks 2014-03-19 12:10:23 +09:00
Andrew Tridgell
18686ab671 Rover: fixed comment 2014-03-13 16:26:14 +11:00
Andrew Tridgell
e7b0e32bfe Rover: set 2nd GPS as secondary 2014-03-08 21:48:23 +11:00
Andrew Tridgell
148fd889bc Rover: fix for X8R receiver on SBUS in failsafe
the X8R briefly gives PWM of 874 on all channels when the receiver is
setup as "no pulses" failsafe handling. This was interpreted as switch
position 0, which was AUTO for me.

This change rejects pulse widths below 900 for mode changes
2014-03-08 19:27:50 +11:00
Andrew Tridgell
7104bdf855 Rover: support k_steering channel 2014-03-05 12:57:51 +11:00
Andrew Tridgell
989b26899f Rover: enable EKF detailed logging 2014-03-03 09:03:48 +11:00
Andrew Tridgell
8740ccfc61 Rover: only send GPS2_RAW when we have a 2nd GPS 2014-03-03 07:05:42 +11:00
Andrew Tridgell
87ea98fe2c Rover: disable GPS2 in HIL 2014-02-27 08:16:11 +11:00
Andrew Tridgell
82ffc0ff2b Rover: support a 2nd GPS 2014-02-26 09:24:23 +11:00
Andrew Tridgell
50f89d0aa6 Rover: pass fix type to gps->setHIL() 2014-02-25 21:11:06 +11:00
Andrew Tridgell
11028c665d Rover: removed unused variables
thanks to Mike McCauley
2014-02-24 18:48:55 +11:00
Andrew Tridgell
eac4b1ec96 Rover: fixed EKF usage for rover
added barometer object, and use shared home object from AHRS. This
gives basic EKF operation.
2014-02-24 09:25:50 +11:00
Andrew Tridgell
203073e3ba Rover: only use pivot steering in AUTO modes 2014-02-24 08:23:20 +11:00
Andrew Tridgell
4ed2630f4f Rover: fix for HIL API change 2014-02-23 08:18:15 +11:00
Randy Mackay
bb0995f7d8 Rover: add EKF params to full param list 2014-02-21 13:51:34 +09:00
Andrew Tridgell
532f06073a Rover: set the ahrs.set_armed() flag 2014-02-19 10:54:04 +11:00
Andrew Tridgell
2ba994b040 Rover: allow for a wider range of values on the control switch 2014-02-17 13:58:11 +11:00
Andrew Tridgell
4e2d5043ba Rover: added PIVOT_TURN_ANGLE parameter
this allows skid steering rovers to turn on the spot for sharp turns
2014-02-17 10:11:40 +11:00
Andrew Tridgell
aeb7578e5d Rover: change to Compass::learn_offsets 2014-02-16 13:22:20 +11:00
Andrew Tridgell
155d751e80 Rover: fixed build 2014-02-15 05:29:48 +11:00
Andrew Tridgell
e315c5f28e Rover: enable use of AHRS_NavEKF 2014-02-15 05:29:46 +11:00
Andrew Tridgell
ec913df7a9 Rover: cleanup HIL defines 2014-02-15 05:29:46 +11:00
Andrew Tridgell
6029ec53ae Rover: changed LOG_WHEN_DISARMED to 1<<16
this makes it possible to set via mavlink float interface
2014-02-15 05:12:48 +11:00
Andrew Tridgell
9d6005edd8 Rover: log power status on Pixhawk 2014-02-15 05:00:09 +11:00
Andrew Tridgell
4e2dbb4a4b Rover: change to new board_voltage() API 2014-02-14 21:50:59 +11:00
Andrew Tridgell
871777fa57 Rover: use new RC_Channels API 2014-02-06 10:17:16 +11:00
Andrew Tridgell
37b8686f76 Rover: removed unused code
thanks to Mike for noticing this
2014-02-04 21:43:47 +11:00
Andrew Tridgell
7a2a431fc6 Rover: check param table on startup 2014-01-31 13:10:15 +11:00
Andrew Tridgell
5b1ac474d1 Rover: update to 2.45 2014-01-27 10:59:32 +11:00
Andrew Tridgell
7aef90a1f3 Rover: consider GPS unhealthy if it doesn't have GPS lock 2014-01-27 09:02:39 +11:00
Andrew Tridgell
2fa8592f7a Rover: 2nd try at fixing rover RC_* docs 2014-01-20 20:11:08 +11:00
Andrew Tridgell
e1fea48bc7 Rover: fixed docs for aux channels 2014-01-20 20:09:06 +11:00
Andrew Tridgell
0828c40870 Rover: converted to AP_ServoRelayEvents 2014-01-20 17:06:29 +11:00
Andrew Tridgell
a595272e38 Rover: fixes for AP_Relay API change 2014-01-20 17:06:29 +11:00
Andrew Tridgell
89c99ce145 Rover: enable AP_BoardConfig 2014-01-20 17:06:28 +11:00
Randy Mackay
3e8e02e9e8 Rover: typo in mode stearing should be steering 2014-01-20 11:22:34 +09:00
Andrew Tridgell
ef57306311 Rover: log PX4 and NuttX versions in logs 2014-01-14 15:38:42 +11:00
Andrew Tridgell
72ce7f5827 Rover: only log when armed 2014-01-14 15:10:13 +11:00
Andrew Tridgell
33acce71c8 Rover: prevent log corruption during log creation 2014-01-14 14:40:10 +11:00
Andrew Tridgell
8d4f89b77e Rover: use uppercase names on SD card where possible 2014-01-14 12:46:26 +11:00
Bill Bonney
2bfcb93cb1 Rover: Fix SYSID ranges to support GCS display of param correctly 2014-01-14 10:32:40 +09:00
Andrew Tridgell
9b7a837553 Rover: try changing GPS setting to AIRBORNE_4G
this may reduce the GPS latency and improve chicane performance
2014-01-13 10:20:40 +11:00
Andrew Tridgell
d7d6ae97de Rover: prepare for 2.44 release 2013-12-30 10:33:48 +11:00
Andrew Tridgell
7578839667 Rover: split up GPS update into 10Hz and 50Hz parts 2013-12-30 10:33:48 +11:00
Andrew Tridgell
870ec8a9bb Rover: added RC in/out logging 2013-12-30 10:24:01 +11:00
Andrew Tridgell
90e4b16462 Rover: use file based logs in SITL 2013-12-29 07:14:11 +11:00
Andrew Tridgell
3b2ef31cc0 Rover: use common available_memory() 2013-12-28 16:02:45 +11:00
Randy Mackay
4fd2d2885e Rover: replace APM with board in cli 2013-12-28 10:42:22 +09:00
Andrew Tridgell
e926f11ec3 Rover: initialise scheduler callback after logging
prevents possible log corruption
2013-12-28 10:25:45 +11:00
Andrew Tridgell
647cc84e00 Rover: fixed logs directory 2013-12-28 10:17:47 +11:00
Andrew Tridgell
ac2f3da5ca Rover: ensure fly_forward is set in AUTO 2013-12-21 23:30:21 +11:00
Andrew Tridgell
b72ea5435b Rover: check for failed RC input
loss of RC for 2s is considered a throttle failsafe
2013-12-20 09:48:36 +11:00
Andrew Tridgell
daa0a7346e Rover: removed common functions 2013-12-17 12:00:46 +11:00
Andrew Tridgell
8054843e73 Rover: updates for DataFlash API changes 2013-12-17 11:51:36 +11:00
Andrew Tridgell
fbd2f7f880 Rover: support log download over MAVLink 2013-12-17 11:51:36 +11:00
Andrew Tridgell
774e4c8885 Rover: moved ap_message into GCS.h 2013-12-17 11:51:35 +11:00
Andrew Tridgell
e80308882e Rover: use common GCS.h 2013-12-17 11:51:34 +11:00
Andrew Tridgell
24cf0a55ea Rover: added timestamps to logging and new STER logging
much more accurate logging for better analysis
2013-12-16 11:17:26 +11:00
Andrew Tridgell
beb9bffcf2 Rover: added logging of 2nd compass 2013-12-10 13:34:53 +11:00
Andrew Tridgell
563e5f71ff Rover: changes for compass API 2013-12-09 17:46:57 +11:00
Andrew Tridgell
562c353bd7 Rover: report both sets of sensors in MAVLink 2013-12-09 17:34:07 +11:00
Andrew Tridgell
615e718524 Rover: updates for compass API change 2013-12-09 17:34:06 +11:00
Andrew Tridgell
d2abf3d170 Rover: release new beta 2013-12-02 10:19:50 +11:00
Randy Mackay
0b00f4d065 Rover: disable external leds 2013-11-30 22:54:05 +09:00
Andrew Tridgell
a5b0dcc6d9 Rover: log system ID if available 2013-11-26 13:00:03 +11:00
Andrew Tridgell
fe0e627304 Rover: changed SERIAL3_BAUD to SERIAL1_BAUD
and add SERIAL2_BAUD for systems that have it
2013-11-26 13:00:03 +11:00
Andrew Tridgell
41cf8d91c3 Rover: fixed VFR_HUD.throttle for reverse 2013-11-25 11:50:50 +11:00
Andrew Tridgell
14a0f8f46d Rover: added support for uartD 2013-11-25 11:21:52 +11:00
Andrew Tridgell
2c840547fa Rover: fixed throttle control in reverse
throttle nudge was being miscalculated
2013-11-25 11:21:52 +11:00
Randy Mackay
e7d5d9a2b7 Rover: log INS errors in PM message 2013-11-18 13:08:53 +09:00
Andrew Tridgell
7046f44443 Rover: added basic support for reverse in STEERING mode
this will allow for reverse in steering mode, while also fixing a
problem with AHRS yaw when reversing, and a problem with initial
throttle in steering mode
2013-11-18 10:58:22 +11:00
Andrew Tridgell
cae3d3b378 Rover: show git and firmware version in tlog 2013-11-09 10:09:20 +11:00
Andrew Tridgell
9748e72b3e Rover: report INS health 2013-11-07 12:48:17 +11:00
Andrew Tridgell
7546ae9ab5 Rover: update for AHRS API changes 2013-11-04 21:21:42 +11:00
Andrew Tridgell
023957967c Rover: fixed PM message 2013-11-02 21:41:33 +11:00
Andrew Tridgell
787fd018b5 Rover: fixed performance monitoring
now the same as plane
2013-10-28 17:21:35 +11:00
Andrew Tridgell
54ab96fe16 Rover: removed fast_loop() and use scheduler for all tasks
this also fixes a parameter download speed issue
2013-10-28 10:34:32 +11:00
Andrew Tridgell
c8e21c194d Rover: set system time on GPS lock 2013-10-24 14:22:48 +11:00
Andrew Tridgell
7a9048f225 Rover: added MAVLink SYSTEM_TIME message 2013-10-24 14:22:48 +11:00
Andrew Tridgell
20ae1b7bc3 Rover: removed demo_servos()
doesn't do much good on rovers, and just slows boot
2013-10-23 09:40:41 +11:00
Andrew Tridgell
cd5b24bf02 Rover: slow parameter send check to 5Hz
this solves an issue with current MP
2013-10-21 09:56:01 +11:00
Andrew Tridgell
8f9315f047 Rover: bring MAVLink stream handling inline with plane 2013-10-21 09:56:00 +11:00
Andrew Tridgell
c20d0e8152 Rover: added SKIP_GYRO_CAL option 2013-10-21 09:56:00 +11:00
Andrew Tridgell
f62c53502d Rover: fixes for AP_Mount API 2013-10-13 11:03:28 +09:00
Andrew Tridgell
5acc372f40 Rover: support MAV_CMD_DO_SET_CAM_TRIGG_DIST 2013-10-11 21:42:13 +11:00
Andrew Tridgell
6a93e0cae4 Rover: remove some unused functions 2013-10-11 21:36:50 +11:00
Andrew Tridgell
2a4e11a572 Rover: prepare for 2.43 release 2013-10-10 15:53:28 +11:00
Andrew Tridgell
bf5aef7119 Rover: enable logging on Linux 2013-10-08 19:20:34 +11:00
Andrew Tridgell
eef966c5fb Rover: use ins.wait_for_sample() 2013-10-08 19:20:34 +11:00
Andrew Tridgell
6304be1f5a Rover: avoid delay_microseconds until fixed on PX4 2013-10-08 14:55:26 +11:00
Andrew Tridgell
42255ebbc6 Rover: improved loop() latency 2013-10-08 11:50:54 +11:00
Andrew Tridgell
1e7af3e101 Rover: switched to L3G4200D driver for Linux 2013-10-08 11:50:54 +11:00
Andrew Tridgell
752d1503b9 Rover: release beta7 2013-10-07 09:32:23 +11:00
Andrew Tridgell
44eedd4abd Rover: update for new AP_SteerController API 2013-10-05 07:42:48 +10:00
Andrew Tridgell
03aca1bd8d Rover: allow throttle nudging in STEERING mode
this better matches what AUTO does
2013-10-05 07:42:48 +10:00
Randy Mackay
ed7f831c18 Rover: mavlink ext status to use SYS_STATUS_SENSOR enum 2013-10-04 13:21:03 +09:00
Randy Mackay
121e4932ea Rover: integrate BattMonitor 2013-10-03 11:16:29 +09:00
Andrew Tridgell
3538e1190c Rover: updates for AP_HAL::MemberProc 2013-09-30 21:06:42 +10:00
Andrew Tridgell
56d33cd3a7 Rover: prep for 2.45beta6 2013-09-30 09:06:25 +10:00
Andrew Tridgell
c7ac864af9 Rover: smooth steeing at low speed in STEERING mode
use the G limit from the turn radius as the steering limit
2013-09-30 09:05:37 +10:00
Andrew Tridgell
9679faae3b Rover: ported to Linux 2013-09-28 22:04:16 +10:00
Andrew Tridgell
0c99a1bbbb Rover: be friendly to multi-tasking OSes 2013-09-28 22:04:15 +10:00
Andrew Tridgell
20d1ddb5ba Rover: update for Stub -> HIL 2013-09-28 22:04:15 +10:00
Andrew Tridgell
19651373d0 Rover: use new scheduler API 2013-09-28 21:24:03 +10:00
Andrew Tridgell
0518fd5d56 Rover: update for new INS API 2013-09-27 10:49:00 +10:00
Andrew Tridgell
3589c07d09 Rover: added support for the flymaple board 2013-09-24 13:51:28 +10:00
Andrew Tridgell
1b200b30f4 Rover: create 2.43beta5 2013-09-24 07:39:13 +10:00
Andrew Tridgell
06a9624a72 Rover: make the default period 8
thanks Tom!
2013-09-24 07:37:24 +10:00
Andrew Tridgell
8f8711b137 Rover: removed SLIDE_SWITCH and PUSHBUTTON defines
not used anywhere
2013-09-23 18:10:22 +10:00
Andrew Tridgell
53f35dee57 Rover: fixed build with print() changes 2013-09-23 18:10:22 +10:00
Andrew Tridgell
aff274f9f4 Rover: make compat functions static 2013-09-23 18:10:22 +10:00
Andrew Tridgell
b52b6ce121 Rover: only send RC_CHANNELS_SCALED in HIL
saves a bit of telemetry bandwidth
2013-09-21 09:30:30 +10:00
Andrew Tridgell
7e589017b3 Rover: fixed baud rates on APM1 2013-09-21 09:30:29 +10:00
Andrew Tridgell
95c2e11b5a Rover: removed flash_leds() calls 2013-09-19 18:38:28 +10:00
Andrew Tridgell
481429de61 Rover: use new HAL usb_connected() function 2013-09-19 16:24:59 +10:00
Andrew Tridgell
e0d44ed31a Rover: prevent arming tone on startup 2013-09-18 10:55:54 +10:00
Andrew Tridgell
3878d9d09e Rover: fixed typo 2013-09-16 09:17:00 +10:00
Andrew Tridgell
a1cbcc5e23 Rover: update to 2.43beta4 2013-09-16 08:24:16 +10:00
Andrew Tridgell
df66dc1889 Rover: honor the FS_GCS_ENABLE parameter
GCS failsafe was always enabled
2013-09-16 08:23:35 +10:00
Andrew Tridgell
8b2c9557c7 Rover: changed to AP_Vehicle.h 2013-09-13 11:47:13 +10:00
Andrew Tridgell
5c639b8b9f Rover: update battery pin docs 2013-09-12 13:42:48 +10:00
Andrew Tridgell
6ab9b0b91b Rover: fixed Vcc 2013-09-12 13:26:12 +10:00
Andrew Tridgell
d20644e664 Rover: added SR0 and SR3 stream rates to auto docs 2013-09-12 09:51:36 +10:00
Andrew Tridgell
3d6e76a050 Rover: changed default L1 period to 11 2013-09-12 07:48:57 +10:00
Andrew Tridgell
983ca71796 Rover: moved override of defaults to load_parameters() 2013-09-09 19:55:11 +10:00
Andrew Tridgell
fc1228eb48 Rover: set a default filter frequency of 5Hz
this should help rovers on rough surfaces
2013-09-09 19:19:11 +10:00
Andrew Tridgell
d000cd2320 Rover: switched to new steering controller
this uses a steering rate controller, based upon the planes roll
controller
2013-09-09 18:04:41 +10:00