Commit Graph

1049 Commits

Author SHA1 Message Date
khancyr ded1bad6c3 Rover: remove duplicate calls from update_navigation()
calc_lateral_acceleration() and calc_nav_steer() aren't need here
2017-07-21 10:13:20 +09:00
khancyr ca3bc05c28 Rover: Don't check if in AUTO on commands callback
This isn't need anymore with modes
2017-07-21 10:13:20 +09:00
Randy Mackay 88b2f62e2f Rover: mode rtl loses duplicate calls to calc_lateral_acceleration
Also no need to call calc_nav_steer
no need to set throttle before entering hold
2017-07-21 10:13:20 +09:00
Randy Mackay 4fe937b985 Rover: do_RTL calls set_mode(RTL)
This reverses the caller so the vehicle code calls into the mode instead of the mode calling up into the vehicle code
2017-07-21 10:13:20 +09:00
Randy Mackay e7424a456f Rover: update advanced failsafe 2017-07-21 10:13:20 +09:00
khancyr 707b006f76 Rover: minor style correction on log 2017-07-21 10:13:20 +09:00
Randy Mackay 2321cefdc2 Rover: move manual mode failsafe handling to mode class 2017-07-21 10:13:20 +09:00
Randy Mackay 6626c2e12e Rover: only mode manual directly copies rc input to motors 2017-07-21 10:13:20 +09:00
Randy Mackay f17f56dea4 Rover: move throttle nudge to Mode class 2017-07-21 10:13:20 +09:00
khancyr b9644c4ec7 Rover: disable slew limit by default on mode 2017-07-21 10:13:20 +09:00
khancyr 809a9e5894 Rover: auto mode fails to enter if no mission
This prevent going into Auto without a mission and skipping the first mission waypoint because we aren't yet in Auto when in enter()
2017-07-21 10:13:20 +09:00
Peter Barker 07f4603533 Rover: integrate mode class 2017-07-21 10:13:20 +09:00
Peter Barker 2a9b1017b6 Rover: add control modes class 2017-07-21 10:13:20 +09:00
Peter Barker 9173c7caaf Rover: move starting of new logs into DataFlash 2017-07-19 16:37:28 +01:00
Peter Barker c9c1f3ea29 Tracker: move starting of new logs into DataFlash 2017-07-19 16:37:28 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas efa59d47f2 Rover: fix FS_THR_VALUE min range 2017-07-19 20:33:07 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas 916a2e8fca Rover: Failsafe parameters default values macros are not used, so delete them
@OXINARF told me that they existed.
@tridge told me I should delete them, now that we have run-time parameters
2017-07-19 20:31:48 +09:00
Randy Mackay 285653da30 Rover: fix init order to clear compile warning
no functional change
2017-07-19 15:26:33 +09:00
Randy Mackay 55a1c9afdf Rover: add advanced failsafe to make build 2017-07-19 15:24:19 +09:00
khancyr 918992eb10 Rover: remove unimplemented functions 2017-07-19 11:00:34 +09:00
Peter Barker f1c3e16354 Rover: remove MSG_STATUSTEXT entirely 2017-07-18 16:12:59 +01:00
khancyr 2e451eb2bc Rover: fix motor test for pilot passthrough of steering 2017-07-18 10:15:44 +09:00
Randy Mackay b6033df457 Rover: intergrate motor test motor seq enum change 2017-07-18 10:15:44 +09:00
Randy Mackay e5b746c7dd AP_MotorsUGV: fix motor test sequence
motor test sequence starts from 1
2017-07-18 10:15:44 +09:00
Randy Mackay 8a86b64776 Rover: motor test accepts negative percentages 2017-07-18 10:15:44 +09:00
Randy Mackay ebeb0923cb Rover: motor test gets improved failure explanations
Also fix pass through for steering channel
2017-07-18 10:15:44 +09:00
khancyr 5208466629 Rover: add motor test 2017-07-18 10:15:44 +09:00
Randy Mackay 7bfb79a4b7 AP_MotorsUGV: add motor_output_test_pwm
this allows the ground station to test a motor by requesting a specific pwm value
2017-07-18 10:15:44 +09:00
khancyr 2cd3dd5cba AP_MotorsUGV: add motor output test 2017-07-18 10:15:44 +09:00
khancyr 8421575f05 AP_MotorsUGV: add output_throttle to handle scaling and relay
this function hides the difference in scaling between the regular throttle
(-100 to +100) and the throttleLeft and throttleRight (-1000 to +1000)
Also handles the setting of the relay for brushed-with-relay motors
2017-07-18 10:15:44 +09:00
khancyr 8223743df8 Rover: add pre_arm_rc_checks 2017-07-18 10:15:44 +09:00
Peter Barker cee7ce0571 Rover: move handling of PREFLIGHT_SET_SENSOR_OFFSETS up 2017-07-17 14:17:19 +01:00
Peter Barker 3586f0e8fb Rover: move handling of MAG_CAL command longs up 2017-07-17 14:17:19 +01:00
Peter Barker a963a80b91 Rover: move MAV_CMD_START_RX_PAIR handling to base class 2017-07-17 14:17:19 +01:00
Peter Barker 7042d3e9c9 Global: all vehicles get AP_Relay and AP_ServoRelayEvent libraries 2017-07-17 00:06:31 +01:00
Peter Barker bcf7c6e6b6 Rover: move mavlink support for servo/relay up 2017-07-16 23:56:00 +01:00
Peter Barker 40eb07f472 Rover: add common handling of mavlink command messages 2017-07-16 23:56:00 +01:00
Michael du Breuil 993df82cfa APMRover: Fix bad parameter generation for AP_MotorUGV 2017-07-16 08:26:52 +10:00
Michael du Breuil a077eac6a9 Rover: Document max loop time as being in microseconds 2017-07-15 17:27:04 +09:00
khancyr 40b860e240 Rover: rename sonar to rangefinder 2017-07-14 17:40:05 +01:00
Peter Barker 2717244dd8 Rover: move rally-point handling up 2017-07-14 01:28:05 +01:00
Randy Mackay 5fc30c763e Rover: move Log_GuidedTarget declaration
No functional change
2017-07-14 07:27:26 +09:00
Randy Mackay ebbbe0584a Rover: integrate wheel encoder 2017-07-14 07:27:26 +09:00
Randy Mackay f6a1c53ff6 Rover: add AP_WheelEncoder to build 2017-07-14 07:27:26 +09:00
Peter Barker adb89c5ca6 Rover: remove unneeded telemetry_delayed parameter 2017-07-12 17:01:36 +01:00
Peter Barker 7aff4c6ab9 Rover: move handling of incoming statutext messages up 2017-07-12 16:52:24 +01:00
Randy Mackay 208607d668 Rover: remove output_trim_all during initialisation
MotorUGV library now outputs the proper values on the motor channels.  Other libraries are also responsible for initialising their outputs on startup.
2017-07-12 14:24:16 +09:00
Peter Barker aeed1f0ff4 Rover: eliminate global static GCS_MAVLINK::send_home_all 2017-07-11 23:48:39 +01:00
Peter Barker 901045b029 Rover: move common mission handling up to GCS_MAVLINK 2017-07-11 23:45:17 +01:00
Peter Barker 2692ee22d3 Rover: eliminate gcs_send_mission_item_reached wrapper 2017-07-11 23:45:16 +01:00