ardupilot/libraries
Lucas De Marchi 6d7678d2a3 AP_HAL_PX4: fix passing callback to member function
This is the same approach as done for AP_HAL_Linux in e3d78b8 ("AP_HAL_Linux:
fix passing callback to member function"). It fixes the following warnings:

ardupilot/libraries/AP_HAL_PX4/Scheduler.cpp: In member function 'virtual void PX4::PX4Scheduler::init(void*)':
ardupilot/libraries/AP_HAL_PX4/Scheduler.cpp:55:95: warning: converting from 'void* (PX4::PX4Scheduler::*)()' to 'pthread_startroutine_t {aka void* (*)(void*)}' [-Wpmf-conversions]
  pthread_create(&_timer_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::PX4Scheduler::_timer_thread, this);
                                                                                               ^
ardupilot/libraries/AP_HAL_PX4/Scheduler.cpp:65:94: warning: converting from 'void* (PX4::PX4Scheduler::*)()' to 'pthread_startroutine_t {aka void* (*)(void*)}' [-Wpmf-conversions]
  pthread_create(&_uart_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::PX4Scheduler::_uart_thread, this);
                                                                                              ^
ardupilot/libraries/AP_HAL_PX4/Scheduler.cpp:75:92: warning: converting from 'void* (PX4::PX4Scheduler::*)()' to 'pthread_startroutine_t {aka void* (*)(void*)}' [-Wpmf-conversions]
  pthread_create(&_io_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::PX4Scheduler::_io_thread, this);
                                                                                            ^
ardupilot/libraries/AP_HAL_PX4/Scheduler.cpp:85:100: warning: converting from 'void* (PX4::PX4Scheduler::*)()' to 'pthread_startroutine_t {aka void* (*)(void*)}' [-Wpmf-conversions]
     pthread_create(&_storage_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::PX4Scheduler::_storage_thread, this);

ardupilot/libraries/AP_HAL_PX4/NSHShellStream.cpp: In member function 'void PX4::NSHShellStream::start_shell()':
ardupilot/libraries/AP_HAL_PX4/NSHShellStream.cpp:83:99: warning: converting from 'void (PX4::NSHShellStream::*)()' to 'pthread_startroutine_t {aka void* (*)(void*)}' [-Wpmf-conversions]
     pthread_create(&shell_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::NSHShellStream::shell_thread, this);
                                                                                                   ^
2015-12-03 07:51:08 +11:00
..
AC_AttitudeControl Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AC_Fence Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AC_InputManager AC_InputManager: Initial class creation 2015-11-12 19:37:21 +09:00
AC_PID Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AC_PrecLand Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AC_Sprayer Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AC_WPNav Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
APM_Control Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
APM_OBC APM_OBC: use millis/micros/panic functions 2015-11-20 12:28:28 +09:00
APM_PI Remove use of PROGMEM 2015-10-30 14:35:16 +09:00
AP_ADC AP_ADC: fixed example build 2015-11-20 17:33:17 +11:00
AP_ADC_AnalogSource AP_ADC_AnalogSource: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
AP_ADSB AP_ADSB: update msg sizeof comment 2015-12-01 17:15:49 -08:00
AP_AHRS AP_AHRS: fixed float exception on start in SITL 2015-12-01 15:19:45 +11:00
AP_Airspeed Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_Arming AP_Arming: libraries_Text_revision 2015-11-26 08:08:58 +11:00
AP_Baro AP_Baro: BMP085: move data-ready macro to a method 2015-12-02 10:40:50 +11:00
AP_BattMonitor AP_BattMonitor: support FMUv4 2015-11-27 18:54:30 +11:00
AP_BoardConfig AP_BoardConfig: use millis/micros/panic functions 2015-11-20 12:29:58 +09:00
AP_Buffer AP_Buffer: change pop_front to return a bool if successful 2014-10-20 08:26:14 +11:00
AP_Camera AP_Camera: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 2015-11-04 12:14:11 +11:00
AP_Common Global: Rename printf format attribute 2015-12-01 07:22:12 +11:00
AP_Compass AP_Compass: examples use millis/micros/panic functions 2015-11-20 12:30:20 +09:00
AP_Curve AP_Curve: remove wrong comment about PSTR 2015-10-30 14:35:49 +09:00
AP_Declination AP_Declination: example uses millis/micros/panic functions 2015-11-20 12:30:27 +09:00
AP_EPM AP_EPM: use millis/micros/panic functions 2015-11-20 12:30:34 +09:00
AP_Frsky_Telem AP_FrSkyTelem: use millis/micros/panic functions 2015-11-20 12:30:41 +09:00
AP_GPS Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_HAL AP_HAL: remove init() method with unused argument 2015-12-02 14:49:12 -02:00
AP_HAL_AVR Remove AP_HAL_AVR 2015-11-04 12:14:11 +11:00
AP_HAL_Empty AP_HAL_Empty: use init() method without arguments 2015-12-02 14:49:11 -02:00
AP_HAL_FLYMAPLE AP_HAL_FLYMAPLE: use init() method without arguments 2015-12-02 14:49:11 -02:00
AP_HAL_Linux AP_HAL_Linux: use init() method without arguments 2015-12-02 14:49:11 -02:00
AP_HAL_PX4 AP_HAL_PX4: fix passing callback to member function 2015-12-03 07:51:08 +11:00
AP_HAL_SITL AP_HAL_SITL: use init() method without arguments 2015-12-02 14:49:11 -02:00
AP_HAL_VRBRAIN AP_HAL_VRBRAIN: use init() method without arguments 2015-12-02 14:49:12 -02:00
AP_IRLock AP_IRLock: use millis/micros/panic functions 2015-11-20 12:31:35 +09:00
AP_InertialNav AP_InertialNav: Address peer review comments 2015-10-20 15:21:36 +11:00
AP_InertialSensor Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_L1_Control Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_LandingGear Remove use of PROGMEM 2015-10-30 14:35:16 +09:00
AP_Limits Replace prog_char and prog_char_t with char 2015-10-30 14:35:30 +09:00
AP_Math AP_Math: remove unused maxf() 2015-12-01 16:28:18 -02:00
AP_Menu AP_Menu: fix wrong printf format for printf 2015-10-30 14:35:41 +09:00
AP_Mission AP_Mission: example uses millis/micros/panic functions 2015-11-20 12:32:09 +09:00
AP_Motors Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_Mount AP_Mount: use millis/micros/panic functions 2015-11-20 12:32:24 +09:00
AP_NavEKF AP_NavEKF: use MAX() instead of maxf() 2015-12-01 16:28:18 -02:00
AP_NavEKF2 Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_Navigation AP_Navigation: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
AP_Notify AP_Notify: Fix GPIO declaration for Linux boards 2015-12-01 07:07:26 +11:00
AP_OpticalFlow AP_OpticalFlow: use millis/micros/panic functions 2015-11-20 12:33:19 +09:00
AP_Parachute AP_Parachute: use millis/micros/panic functions 2015-11-20 12:33:26 +09:00
AP_Param AP_Param: copter with vectors when sending parameters 2015-11-09 14:28:20 +11:00
AP_PerfMon AP_PerfMon: use millis/micros/panic functions 2015-11-20 12:33:33 +09:00
AP_Progmem AP_Progmem: remove dead code 2015-10-30 14:35:47 +09:00
AP_RCMapper Remove use of PROGMEM 2015-10-30 14:35:16 +09:00
AP_RPM AP_RPM: added a SITL RPM backend 2015-11-23 14:30:42 +11:00
AP_RSSI Remove use of PROGMEM 2015-10-30 14:35:16 +09:00
AP_Rally AP_Rally: use millis/micros/panic functions 2015-11-20 12:34:04 +09:00
AP_RangeFinder Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
AP_Relay AP_Relay: don't default to using two PWMs as relays on FMUv4 2015-11-27 18:54:31 +11:00
AP_Scheduler AP_Scheduler: use millis/micros/panic functions 2015-11-20 12:34:17 +09:00
AP_SerialManager AP_SerialManager: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 2015-11-04 12:14:13 +11:00
AP_ServoRelayEvents AP_ServoRelayEvents: use millis/micros/panic functions 2015-11-20 12:34:39 +09:00
AP_SpdHgtControl AP_SpdHgtControl: added flight stage FLIGHT_LAND_ABORT 2015-09-09 09:04:24 +10:00
AP_TECS AP_TECS: avoid comparison between signed and unsigned 2015-12-01 16:28:18 -02:00
AP_Terrain AP_Terrain: libraries_Text_revision 2015-11-26 08:10:15 +11:00
AP_Vehicle AP_Vehicle: standardize inclusion of libaries headers 2015-08-11 16:38:24 +10:00
DataFlash Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
Filter Filter: added reset method on vector filters 2015-11-22 17:30:29 +11:00
GCS_Console build: removed all nocore.inoflag files 2015-11-16 08:05:17 +11:00
GCS_MAVLink GCS_MAVLink: regenerate headers 2015-12-01 17:12:20 -08:00
PID PID: use millis/micros/panic functions 2015-11-20 12:35:42 +09:00
RC_Channel Global: rename min and max macros to uppercase 2015-12-01 16:28:09 -02:00
SITL SITL: update ADSB for squawk 2015-12-01 17:13:02 -08:00
StorageManager StorageManager: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 2015-11-04 12:14:13 +11:00
doc Checking these in makes the libraries too bulky. We need to host them somewhere. 2011-01-04 06:22:02 +00:00