Commit Graph

1597 Commits

Author SHA1 Message Date
Randy Mackay
69e5a4b262 Rover: sailboat tack triggered by any switch movement 2018-11-01 18:04:19 +09:00
Randy Mackay
2db6b7c7cb Rover: move sailboat vars into struct
also fix airspeed library's parameter description
also log NaN when we do not have wind direction or speed estimates
also send timeout message to GCS when taking takes too long
2018-11-01 18:04:19 +09:00
Randy Mackay
4dbff6af7e Rover: use AP_WindVane's send_wind 2018-11-01 18:04:19 +09:00
IamPete1
0dddc2eafe Rover: add sailboat tacking 2018-11-01 18:04:19 +09:00
Peter Barker
9a263780d0 Rover: move handling of gimbal messages up
Rover: move handling of mav_cmd_do_mount_control up

Rover: move handling of deprecated mount messages up

Rover: move handling of command_do_set_roi up

Rover: move handling of command_do_set_roi up

Rover: mount no longer takes ahrs in constructor
2018-10-30 17:19:14 +11:00
Peter Barker
42b196a9a6 Rover: let AP_Mission handle common camera commands 2018-10-30 15:37:18 +11:00
Peter Barker
0eff11eebe Rover: move servorelayevents mission handling into AP_Mission 2018-10-30 15:37:18 +11:00
Peter Barker
6cbcfb5d61 Rover: AC_Avoid is built on all vehicles 2018-10-30 12:10:42 +11:00
Randy Mackay
b64bdcdfda Rover: remove proximity check from arming checks
it is OK for rovers to be armed very close to objects especially when they are beside the rover
2018-10-26 14:38:04 +09:00
Andrew Tridgell
7ae90237e3 Rover: use set_flying to allow for compass learning to run 2018-10-24 07:25:42 +10:00
Peter Barker
50cb391dea Rover: leave AHRS to log and notify home changes 2018-10-16 10:55:13 +11:00
Randy Mackay
3e7cd5a721 Rover: fix typo on call to AP_WindVane 2018-10-07 15:46:57 +09:00
Raouf
fc5ce7b273 Rover: send obstacle_distance messages to proximity lib 2018-10-02 10:37:13 +09:00
Randy Mackay
925d4035a4 Rover: fix loiter comment 2018-09-28 10:40:12 +09:00
Randy Mackay
c3f3ee03d0 Rover: windvane calibration can be started with preflight-calibration msg
send COMMAND_LONG with MAV_CMD_PREFLIGHT_CALIBRATION command and set param6 field to 3
2018-09-28 10:40:12 +09:00
Randy Mackay
4a5b56c929 Rover: windvane update called from scheduler at 20hz 2018-09-28 10:40:12 +09:00
Randy Mackay
7163839117 AP_MotorsUGV: remove arg from output_mainsail
no need to pass in argument which is always a local variable
2018-09-28 10:40:12 +09:00
IamPete1
4366bae96d Rover: add sailboat support 2018-09-28 10:40:12 +09:00
IamPete1
100c494127 Rover: add loiter radius parameter 2018-09-28 10:40:12 +09:00
IamPete1
e3d5db8db5 Rover: add AP_WindVane to build 2018-09-28 10:40:12 +09:00
Randy Mackay
a59b83af9a AP_MotorsUGV: add mainsail to servo test 2018-09-28 10:40:12 +09:00
IamPete1
fa0fc5eade AP_MotorsUGV: add mailsail support for sailboats 2018-09-28 10:40:12 +09:00
Randy Mackay
0665ac5229 Rover: rename rudder_arming to get_rudder_arming_type 2018-09-11 19:34:39 +10:00
Randy Mackay
b1a4cd55fd Rover: support disabling rudder arming 2018-09-11 19:34:39 +10:00
Randy Mackay
9c13324b87 Rover: update simple call to calc_steering_to_heading 2018-09-11 16:43:17 +09:00
Randy Mackay
14fc117cd4 Rover: simple mode calcs clarified and const added 2018-09-11 16:43:17 +09:00
Randy Mackay
efdd3946fc Rover: simple mode fixes 2018-09-11 16:43:17 +09:00
Ammarf
6ba5942ece Rover: add simple mode 2018-09-11 16:43:17 +09:00
Randy Mackay
743de16c07 Rover: fix calls to calc_steering_to_heading
reversed flag was being passed into the wrong argument
2018-09-11 14:39:50 +09:00
Randy Mackay
cd64ce45ac Rover: fix calc_steering_to_heading rate_max handling
units mix up led to deg/s parameter value being applies as rad/s
2018-09-11 14:39:50 +09:00
Peter Barker
7c60c85a12 Rover: use camera singleton to get camera rather than callback 2018-08-31 15:48:56 +10:00
Peter Barker
a5691500ad Rover: GCS_MAVLink uses compass singleton, stop implementing get_compass 2018-08-31 15:48:56 +10:00
Ammarf
0f10d2316a Rover: fix OmniX motor order 2018-08-31 08:38:17 +09:00
Randy Mackay
03e0437c19 Rover: fix RTL when AP_RALLY disabled 2018-08-30 10:33:37 +09:00
Randy Mackay
dd3163b065 Rover: rename AC_RALLY to AP_RALLY 2018-08-30 10:00:56 +09:00
Randy Mackay
587addbdfa Rover: remove unused TURN_GAIN definition 2018-08-30 09:55:07 +09:00
Randy Mackay
f0ad8760e2 Rover: move rally to g2 2018-08-30 09:55:05 +09:00
Raouf
90fd64cf3a Rover: add support for rally points 2018-08-30 09:54:51 +09:00
Thorsten Panitz
ee8d5d77d0 Rover: Activation of OSD
Rover: Activation of OSD
2018-08-30 08:19:02 +10:00
Randy Mackay
88a230e897 Rover: DPTH message only written if range finder last read time changed 2018-08-28 09:23:38 +09:00
Randy Mackay
19d943106b Rover: pass vehicle speed to attitude control pitch control 2018-08-27 16:44:33 +09:00
Randy Mackay
5aa1286344 Rover: report left and right wheel control PID 2018-08-27 16:44:33 +09:00
Randy Mackay
e0fa829665 Rover: pitch PID_TUNING sends degrees
also send FF although it is rarely used
2018-08-27 16:44:33 +09:00
Randy Mackay
db611e074c Rover: include wheel-rate-control 2018-08-27 16:44:33 +09:00
Randy Mackay
85ac24d96e Rover: update wheel encoders at 50hz 2018-08-27 16:44:33 +09:00
Randy Mackay
69541fc89c AP_MotorsUGV: use wheel-rate-control for skid steering vehicles 2018-08-27 16:44:33 +09:00
Randy Mackay
a5e28f0729 Rover: balancebot_pitch_control method removes unused armed arg
Also remove constraint on throttle output (this is handle in the AP_MotorsUGV library
Also move balance bot declarations to alphabetical order within Rover.h
2018-08-27 16:44:33 +09:00
Randy Mackay
961aab7425 Rover: balance bot passes motor limits to pitch control 2018-08-27 16:44:33 +09:00
Randy Mackay
9ae9f84498 Rover: fix G_Dt when SCHED_LOOP_RATE increased
This fixes a bug in the G_Dt calculation which is used in the motors library and PID controllers.  The issue occurred in cases where the ahrs_update was not being run which could happen because it's estimated time was too long.
This also properly runs the critical functions (update ahrs, run flight mode code, send outputs to motors) at up to 400hz
2018-08-25 17:50:15 +10:00
Randy Mackay
473e8d18a1 Rover: reduce scheduler estimated time for gcs tasks 2018-08-24 15:30:50 +09:00