Patrick José Pereira
ffe356d597
ArduCopter: Simplify boolean expression
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Peter Barker
f4cbc50ba4
Copter: use an enumeration for pre-throw motor state
4 years ago
Peter Barker
bd0dff1b0e
Copter: use enum-class and AP_Enum for ThrowType
4 years ago
Rishabh
41590916d5
Copter: Added Throw Mode logger documentation
5 years ago
Michael du Breuil
b42b1c08c4
Copter: Support new AP_Vehicle::set_mode
5 years ago
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
5 years ago
Peter Barker
676d75c391
Copter: correct namespacing of Copter modes
...
This makes us look like Rover and Plane in terms of namespacing for the
Mode classes, and removes a wart where we #include mode.h in the middle
of the Mode class.
This was done mechanically for the most part.
I've had to remove the convenience reference for ap as part of this.
6 years ago
Peter Barker
46a6f45e4a
Copter: adjust for desired spool state and spool state renames
6 years ago
Leonard Hall
df3e73f161
Copter: spool fixes for acro stabilize and throw
6 years ago
Leonard Hall
38cc5a817f
Copter: consolidate mode state decisions
...
bnsgeyer and rmackay9 contributed to these changes
make_safe_shut_down waits for spool down before disarming
remove use of attitude_control::set_throttle_out_unstabilized to consolidate logic between multicopters and tradhelis
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Leonard Hall
2ddb3f6697
Copter: desired-ground-idle replaces spin-when-armed
6 years ago
Peter Barker
26ca75efae
Copter: make libraries get EKF control limits themselves
6 years ago
Randy Mackay
042e7b473b
Copter: minor comment fix to throw
6 years ago
Michael du Breuil
7e1ed948f5
Copter: Cope with AC_PosControl renaming
6 years ago
Leonard Hall
17b61f72a3
Copter: Initialise desired acceleration before loiter init
6 years ago
Pierre Kancir
1f30ae3076
ArduCopter: fix float to double warning
7 years ago
Peter Barker
80549a479e
Copter: move throw logging into ModeThrow
7 years ago
Randy Mackay
59e4749fd0
Copter: integrate AC_Loiter
...
includes param conversion
7 years ago
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
ed36ec3c29
Copter: add option to disable THROW mode
7 years ago
Andrew Tridgell
0ed75052f8
Copter: enable parameters inside mode objects
...
this adds FHLD_* parameters for FlowHold mode. It is a large patch as
it needs to disentagle the mode class to enable it to be used in
Parameters.h
7 years ago
Peter Barker
8d658e1dbc
Copter: correct misleading comment in mode_throw
7 years ago
Randy Mackay
c3fbf2671c
Copter: rename control_xx.cpp files to mode_xx.cpp
7 years ago
Randy Mackay
06fbe8f3a7
Copter: rename FlightMode class to Mode
...
also remove unused print_FlightMode method
7 years ago
Randy Mackay
8870897847
Copter: FlightMode objects use lower case
7 years ago
Peter Barker
cf423ce681
Copter: FlightMode - convert THROW flight mode
7 years ago
Andrew Tridgell
ef0144751e
Copter: allow THROW_NEXTMODE=LOITER
7 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
murata
1df8acf5cd
Copter: remove intermediate variable from throw mode
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Francisco Ferreira
1e2e24eeac
Copter: fix wrong range in Throw mode
...
Fixes #5038
8 years ago
Jonathan Challinger
80f3541933
Copter: add configurable arming delay
9 years ago
Randy Mackay
595aea236a
Copter: consolidate throw mode state into structure
9 years ago
Randy Mackay
381397c7bd
Copter: set throw mode stage on init
9 years ago
Randy Mackay
807e930251
Copter: throw uses motor spooling instead of interlock
9 years ago
Randy Mackay
f4f13bbe6b
Copter: add throw mode logging
9 years ago
Randy Mackay
8c5c8eec44
Copter: minor throw mode comment fix
...
No functional change
9 years ago
Randy Mackay
8e58ea9277
Copter: add throw mode defines for required speed
...
No functional change
9 years ago
chambana
25940c8e0f
Copter: add THROW_TYPE and allow dropping vehicle to trigger motors
9 years ago
Randy Mackay
f0f87a2f0c
Copter: add throw_nextmode
...
vehicle switches to mode specified in THROW_NEXTMODE parameter after the
throw is completed.
9 years ago
Randy Mackay
64ac18da6c
Copter: move throw state into structure
...
This makes it easier to add more state which is required for the follow throw_nextmode change
9 years ago
Leonard Hall
7d54c268f6
Copter: consolidate input_euler_angle calls to use smoothing gain
...
Previously we had _smooth and non-smooth methods in the attitude
controller but as part of the move to quaternions these have been replaced
by a single call which always takes a smoothing gain
9 years ago
Andrew Tridgell
c035ade402
Copter: removed slow_start() from throw mode
9 years ago
Randy Mackay
a8bea0af03
Copter: allow switching to throw without position estimate
...
The vehicle arming check will still stop the user from arming in throw mode without a good position estimate.
9 years ago
Randy Mackay
dca89e7fe7
Copter: throw static variables moved to global scope
9 years ago
Randy Mackay
24cfbeebd0
Copter: add throw_exit
9 years ago
Randy Mackay
959c0eccfd
Copter: reject changing to throw mode while armed
9 years ago