ardupilot/libraries/AP_HAL_Linux
Lucas De Marchi 54c2c5f682 AP_HAL_Linux: use method for downcast
Instead of just doing a static cast to the desired class, use a method
named "from". Pros:

  - When we have data shared on the parent class, the code is cleaner in
    child class when it needs to access this data. Almost all the data
    we use in AP_HAL benefits from this

  - There's a minimal type checking because now we are using a method
    that can only receive the type of the parent class
2015-09-23 09:01:29 +10:00
..
examples/BusTest AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_Linux.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_Linux_Main.h HAL_Linux: use board subtypes 2014-07-14 09:44:35 +10:00
AP_HAL_Linux_Namespace.h AP_HAL_Linux: added support for raspilot objects 2015-09-14 14:22:16 +10:00
AP_HAL_Linux_Private.h AP_HAL_Linux: added support for raspilot objects 2015-09-14 14:22:16 +10:00
AnalogIn.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn_Navio.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn_Navio.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
ConsoleDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
ConsoleDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
GPIO.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
GPIO.h AP_HAL_Linux: added support for raspilot GPIO 2015-09-14 14:22:15 +10:00
GPIO_BBB.cpp AP_HAL_Linux: ERLEBOARD legacy support 2015-09-09 10:31:55 +10:00
GPIO_BBB.h AP_HAL_Linux: ERLEBOARD legacy support 2015-09-09 10:31:55 +10:00
GPIO_RPI.cpp HAL_Linux: don't panic on runtime failures 2015-09-14 14:22:16 +10:00
GPIO_RPI.h AP_HAL_Linux: added support for raspilot GPIO 2015-09-14 14:22:15 +10:00
HAL_Linux_Class.cpp AP_HAL_Linux: added support for raspilot objects 2015-09-14 14:22:16 +10:00
HAL_Linux_Class.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.cpp AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
RCInput_AioPRU.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_AioPRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_Navio.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_Navio.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_PRU.cpp AP_HAL_Linux: ERLEBOARD legacy support 2015-09-09 10:31:55 +10:00
RCInput_PRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_Raspilot.cpp AP_HAL_Linux: added support for raspilot RCInput 2015-09-14 14:22:15 +10:00
RCInput_Raspilot.h AP_HAL_Linux: added support for raspilot RCInput 2015-09-14 14:22:15 +10:00
RCInput_UDP.cpp AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput_UDP.h AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput_UDP_Protocol.h AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput_ZYNQ.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_ZYNQ.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_AioPRU.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_AioPRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_Bebop.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_Bebop.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
RCOutput_PCA9685.cpp AP_HAL_Linux: Allow PCA9685 to be used on non-default I2C addresses. 2015-09-09 08:43:22 +10:00
RCOutput_PCA9685.h AP_HAL_Linux: Allow PCA9685 to be used on non-default I2C addresses. 2015-09-09 08:43:22 +10:00
RCOutput_PRU.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_PRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_Raspilot.cpp AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
RCOutput_Raspilot.h AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
RCOutput_ZYNQ.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput_ZYNQ.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RPIOUARTDriver.cpp HAL_Linux: don't panic on runtime failures 2015-09-14 14:22:16 +10:00
RPIOUARTDriver.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
RaspilotAnalogIn.cpp HAL_Linux: fixed apm2 build 2015-09-14 14:22:16 +10:00
RaspilotAnalogIn.h AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
SPIDriver.cpp AP_HAL_Linux: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
SPIDriver.h AP_HAL_Linux: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
SPIUARTDriver.cpp AP_HAL_Linux: fixed ublox debug message 2015-09-14 14:22:16 +10:00
SPIUARTDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Scheduler.cpp AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
Scheduler.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
SerialDevice.h AP_HAL_Linux: added SerialDevice interface 2015-07-29 08:36:05 +10:00
Storage.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
Storage_FRAM.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage_FRAM.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
TCPServerDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
TCPServerDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
ToneAlarmDriver.cpp AP_HAL_Linux: added tonealarm support for raspilot 2015-09-14 14:22:16 +10:00
ToneAlarmDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
UARTDriver.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
UARTDriver.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
UDPDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UDPDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
Util.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Util.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
dsm.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
dsm.h HAL_Linux: added low level DSM decoder 2014-10-08 12:50:50 +11:00
px4io_protocol.h AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
sbus.cpp HAL_Linux: fixed build warnings 2014-10-09 16:49:23 +11:00
sbus.h HAL_Linux: added SBUS decoder from PX4 project 2014-10-07 14:57:34 +11:00