Lucas De Marchi
ef3edc531c
AP_BoardConfig: add static create method
7 years ago
Lucas De Marchi
c10a91964f
AP_RCMapper: add static create method
7 years ago
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
7 years ago
Lucas De Marchi
04866e9f76
AP_SerialManager: add static create method
7 years ago
Lucas De Marchi
fbe0d9761c
global: use static method to construct AP_OpticalFlow
7 years ago
Lucas De Marchi
04c3dca3ce
AP_OpticalFlow: add static create method
7 years ago
Lucas De Marchi
39aee74b29
AP_Arming: make constructor protected
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
Lucas De Marchi
ef50783268
AP_Mission: add static create method
7 years ago
Lucas De Marchi
de5e044b02
global: use static method to construct AP_RPM
7 years ago
Lucas De Marchi
aefae9381e
AP_RPM: add static create method
7 years ago
Lucas De Marchi
40fd1b346c
global: remove rangefinder from AP_AHRS_NavEKF
...
AP_AHRS_NavEKF doesn't use the rangefinder, it just delegates the
calls to the right estimator.
For libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp the initialization
order has also been modified to match the order on vehicles. It's more
correct since it passes a reference when EKF2/EKF3 are already
constructed, while thos constructors use a pointer. Ideally these
should be moved to an init() method though, or use a get_instance().
7 years ago
Lucas De Marchi
9027a55696
global: use static method to construct RangeFinder
7 years ago
Lucas De Marchi
2e80b2e1d0
AP_RangeFinder: add static create method
7 years ago
Lucas De Marchi
b3d8c0fc08
AP_Mount: use DataFlash_Class::instance()
...
Instead of requiring DataFlash_Class reference to be passed
on the init() function, get it from the singleton directly.
7 years ago
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
7 years ago
Lucas De Marchi
a25320d522
DataFlash: add static create method
7 years ago
Lucas De Marchi
6aaa00d915
AP_LeakDetector: add static create method
7 years ago
Lucas De Marchi
9463dbb408
AP_Notify: add static create method
7 years ago
Lucas De Marchi
de680dac5b
global: use static method to construct AP_Scheduler
7 years ago
Lucas De Marchi
d3e12eb899
AP_Scheduler: add static create method
7 years ago
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
7 years ago
Lucas De Marchi
2cb2727a31
AP_GPS: add static create method
7 years ago
Lucas De Marchi
87b30b4552
global: use static method to construct AP_InertialSensor
7 years ago
Lucas De Marchi
d566567d87
AP_InertialSensor: add static create method
7 years ago
Lucas De Marchi
c1a957fbf3
global: use static method to construct Compass
7 years ago
Lucas De Marchi
320260a151
AP_Compass: add static create method
7 years ago
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
7 years ago
Lucas De Marchi
c5c1d5abfe
AP_Baro: add static create method
7 years ago
Michael du Breuil
c34104b369
APM_Control: Simpify yaw controller trig
7 years ago
Michael du Breuil
eb9dd8c5a2
AP_Landing: Fix an error when computing the course offset for deepstall
7 years ago
Lucas De Marchi
54a4a78795
AP_Common: do not include version.h/ap_version.h
...
The interface provided by each vehicle should be used to get the
version.
7 years ago
Lucas De Marchi
9e7bda83bf
DataFlash: add temporary workaround for macro usage
...
Make DataFlash correctly save the git version. We should think about a
better solution, like it was done on GCSMavlink, but this is the minimal
change to make it possible to move includes of version.h to their
respective users.
7 years ago
Lucas De Marchi
ec935cf0fe
GCS_MAVLink: refactor send_banner() to use AP_FWVersion
7 years ago
Lucas De Marchi
ed2b8d3476
GCS_MAVLink: refactor send_autopilot_verison() to use AP_FWVersion
...
Make the method use the getter directly to get a reference of
AP_FWVersion and work out everything that needs to be sent. This allows
us to remove ifdefs and replace with runtime if/else.
Note that there's also a bug fix: we were not setting flight_custom_version
to zero in case GIT_VERSION wasn't defined.
7 years ago
Lucas De Marchi
370e10281b
AP_Common: AP_FWVersion: add pointers to git hash strings
...
Keeping the hash strings on this struct allow to handle them
the same way on common code and remove ifdefs.
7 years ago
Andrew Tridgell
678bd084b7
AP_Compass: added IST8310 on FMUv3 I2C
7 years ago
davidaroyer
cb270a9acf
AP_RangeFinder: cleanup variable names in uLanding driver
7 years ago
davidaroyer
8284fb1093
AP_RangeFinder: update uLanding driver for new firmware data format
7 years ago
fnoop
149188de12
AP_HAL: Add size() method to RingBuffer ObjectArray
7 years ago
fnoop
3ddd9a6bca
AP_HAL: RingBuffer: Prefix private members with underscore
7 years ago
Andrew Tridgell
2c68b5dac3
AP_Airspeed: fixed airspeed autocal
...
don't use negative pressures
7 years ago
Mark Whitehorn
dedb40ce0b
SITL: add parameter to simulate reversed pitot tube order
7 years ago
Mark Whitehorn
f32f51f843
AP_Airspeed: eliminate airspeed positive bias
7 years ago
Lucas De Marchi
3847825fba
AP_HAL_Linux: make Aero use Tap ESC
...
This allows controlling the motors from Linux on Intel Aero RTF given
the right FPGA firmware is in place.
7 years ago
Lucas De Marchi
68b3e5ccab
AP_HAL: aero: define uart RCOutput_Tap
7 years ago
Lucas De Marchi
51665a2ea9
AP_HAL: RCOutput_Tap: split baudrate set for Linux and Nuttx
...
On Linux (and in most of posix-like systems) the baudrate set in struct
termios via cfset[io]speed is actually the index of the standard
baudrates, it's not the baudrate per se (hence the use of B* macros).
On Linux it's possible to set the baudrate by passing the baudrate
itself to TCSETS2 ioctl. Unfortunately it's not possible to include
asm/termbits.h and termios.h in the same compilation unit, so we need to
split it. Here we split into a Linux and a NuttX implementation.
7 years ago
Lucas De Marchi
58a76adc13
AP_HAL: RCOutput_Tap: allow different device to be used
7 years ago
Lucas De Marchi
f6b1099896
AP_HAL: move in tap esc implementation
...
This can be shared with Linux.
7 years ago
Peter Barker
3af5be76aa
DataFlash: protect write fd with semaphore
...
If the sensor threads are using WriteBlock they may pass the _write_fd
== -1 check but then have that set to -1 by the main thread
7 years ago