Peter Barker
e6c6189fe5
Copter: cope with change in namespace of LogEvent enum
...
Also move Acro Trainer types into an enum class as the global defines
interfere with the Event names.
Also eliminate the Log_Write_Event wrappers.
5 years ago
Randy Mackay
7b0da89708
Copter: add vibration check
5 years ago
Leonard Hall
50a098c359
Copter: Standby functions
5 years ago
Randy Mackay
2cb3e446ab
Copter: systemid mode formatting and name changes
5 years ago
Leonard Hall
91be844b66
Copter: Let modes stop Attitude Logging
5 years ago
Andy Piper
7fd22f63a9
ArduCopter: allow logging of both IMU and IMU_RAW
...
allow logging of both IMU and IMU_RAW at the same time so that filtering and errors can be seen
5 years ago
Andy Piper
8ce7f02167
ArduCopter: add functions to update dynamic notch frequency. Periodically log the frequency.
...
tradheli- make RPM sensor input to harmonic notch in hertz
5 years ago
murata
abb91fc33a
Copter: Change external button specification to option
...
Copter: Change the definition name from BUTTON to BUTTON_ENABLED.
5 years ago
Randy Mackay
9d5cbbe58f
Copter: restore range finder updates to 20hz
5 years ago
Randy Mackay
b54cf410ef
Copter: increase read_rangefinder to 50hz
5 years ago
Peter Barker
4d6dc9b0a7
Copter: call periodic fence update function
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
b9a387ed9e
Copter: stop updating sensor status flags
...
These are updated as required in the gcs library itself.
6 years ago
Peter Barker
4fa83ed40d
Copter: move automatic declination setting into AP_Compass itself
6 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
33daef2f33
Copter: merge ArduCopter.cpp and Copter.cpp
6 years ago
Peter Barker
31f796f0c5
Copter: remove unused scaleLongDown member
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
485cafb343
Copter: use AP_FWVersion singleton
7 years ago
Peter Barker
ba8b3e2415
Copter: create an AutoYaw helper object to hold auto-yaw state
7 years ago
Peter Barker
846506230d
Copter: remove pointless initialisations
...
Also reduce storage size of gps primary
7 years ago
Peter Barker
bfc373aeff
Copter: move logging of PM messages to AP_Scheduler
7 years ago
Peter Barker
80a3d63264
Copter: use AP_Scheduler's loop() function
7 years ago
Peter Barker
7f69c5d26d
Copter: use scheduler ticks in place of mainloop_count
7 years ago
Peter Barker
996115c0d3
Copter: eliminate MAIN_LOOP_SECONDS macro
7 years ago
Peter Barker
6c82f7671d
Copter: move all commands logic into AUTO flightmode
7 years ago
Andrew Tridgell
8ab0ac8a16
Copter: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Randy Mackay
2d23e1f7c7
Copter: rename flightmode_ objects to mode_
7 years ago
Randy Mackay
ac8c2b3f03
Copter: resolve compiler warning from flight-mode declaration
7 years ago
Peter Barker
5d33cf08e1
Copter: eliminate calc_home_distance_and_bearing
...
Calling update_simple_mode_bearing calls get-heading
rather than the other way around
This will have the advantage of not calculating home bearing
when we stop calling update_simple_mode_bearing unnecesarily
7 years ago
Peter Barker
103e2cc711
Copter: calculate wp bearing and distance on demand
...
Move responsibility for calculating wp bearing/distance
into the FlightMode object doing the navigation
Calculating these variables was being done at 50Hz where they
were used at 10Hz max.
7 years ago
Peter Barker
9c60c1de58
Copter: FlightMode - convert SMARTRTL flight mode
7 years ago
Peter Barker
682f3c0e7e
Copter: FlightMode - convert RTL flight mode
7 years ago
Peter Barker
2db09ba0f7
Copter: FlightMode - convert GUIDED flight mode
7 years ago
Peter Barker
871ba5630f
Copter: FlightMode - convert CIRCLE flight mode
7 years ago
Peter Barker
e2b70c3a0a
Copter: FlightMode - convert AUTO flight mode
7 years ago
Peter Barker
a95a35c134
Copter: FlightMode - convert STABILIZE flight mode
7 years ago
Lucas De Marchi
1263e20a0d
ArduCopter: use static method to construct AC_InputManager
7 years ago
Lucas De Marchi
e21e02cfdb
ArduCopter: use static method to construct AC_PrecLand
7 years ago
Lucas De Marchi
cf6ea9642e
global: use static method to construct AP_Terrain
7 years ago
Lucas De Marchi
31db77e47b
global: use static method to construct AP_Parachute
7 years ago
Lucas De Marchi
57bbb2e1d9
ArduCopter: use static method to construct AC_Sprayer
7 years ago
Lucas De Marchi
4f42facefc
global: use static method to construct AC_Avoid
7 years ago
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
7 years ago
Lucas De Marchi
c6eb48009b
global: use static method to construct AC_Fence
7 years ago
Lucas De Marchi
18aa88b329
global: use static method to construct AP_Mount
7 years ago
Lucas De Marchi
c3647f0185
global: use static method to construct AP_Camera
7 years ago
Lucas De Marchi
cc53e7bc4b
global: use static method to construct AP_ServoRelayEvents
7 years ago
Lucas De Marchi
9ce6019138
global: use static method to construct AP_Frsky_Telem
7 years ago
Lucas De Marchi
b36a5919f5
global: use static method to construct AP_Mission
...
This also move the initialization to be in the header for those that
weren't already to maintain consistency.
7 years ago