dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
POSIX Simulator

Macros

#define PIOS_COM_TELEM_TCP_RX_BUF_LEN   384
 
#define PIOS_COM_TELEM_TCP_TX_BUF_LEN   384
 
#define PIOS_COM_GPS_RX_BUF_LEN   96
 
#define PIOS_ADC_SUB_DRIVER_MAX_INSTANCES   3
 
#define PIOS_LED_HEARTBEAT   0
 
#define PIOS_LED_ALARM   1
 
#define PIOS_ANNUNC_NUM   2
 
#define PIOS_COM_BUFFER_SIZE   1024
 
#define PIOS_COM_MAX_DEVS   255
 
#define PIOS_UDP_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE
 
#define PIOS_TCP_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE
 
#define PIOS_SERIAL_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE
 
#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)
 
#define PIOS_COM_GPS   (pios_com_gps_id)
 
#define PIOS_COM_MSP   (pios_com_msp_id)
 
#define PIOS_COM_DEBUG   (pios_com_debug_id)
 
#define PIOS_COM_OPENLOG   (pios_com_openlog_id)
 
#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)
 
#define DEBUG_LEVEL   2
 
#define DEBUG_PRINTF(level,...)   do { if ((level) <= DEBUG_LEVEL) { fprintf(stderr, __VA_ARGS__); } } while (0)
 
#define PIOS_INCLUDE_SYS
 
#define PIOS_INCLUDE_ANNUNC
 
#define PIOS_INCLUDE_RTOS   /* Indicates an RTOS is present */
 
#define PIOS_INCLUDE_COM
 
#define PIOS_INCLUDE_GPS
 
#define PIOS_INCLUDE_GPS_NMEA_PARSER
 
#define PIOS_INCLUDE_GPS_UBX_PARSER
 
#define PIOS_INCLUDE_MSP_BRIDGE
 
#define PIOS_INCLUDE_LIGHTTELEMETRY
 
#define PIOS_INCLUDE_OPENLOG
 
#define PIOS_INCLUDE_TCP
 
#define PIOS_INCLUDE_UDP
 
#define PIOS_INCLUDE_SERVO
 
#define PIOS_INCLUDE_RCVR
 
#define PIOS_INCLUDE_UAVTALKRCVR
 
#define PIOS_INCLUDE_IAP
 
#define PIOS_INCLUDE_BL_HELPER
 
#define PIOS_INCLUDE_FLASH
 
#define PIOS_INCLUDE_LOGFS_SETTINGS
 
#define PIOS_INCLUDE_RANGEFINDER
 
#define PIOS_INCLUDE_INITCALL   /* Include init call structures */
 
#define PIOS_INCLUDE_RTC
 
#define PIOS_RCVR_MAX_CHANNELS   12
 
#define PIOS_TELEM_STACK_SIZE   PIOS_THREAD_STACK_SIZE_MIN
 
#define HEAP_LIMIT_WARNING   4000
 
#define HEAP_LIMIT_CRITICAL   1000
 
#define IRQSTACK_LIMIT_WARNING   150
 
#define IRQSTACK_LIMIT_CRITICAL   80
 
#define CPULOAD_LIMIT_WARNING   80
 
#define CPULOAD_LIMIT_CRITICAL   95
 
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   9959
 
#define CAMERASTAB_POI_MODE
 
#define PIOS_INCLUDE_FAKETICK
 
#define PIOS_INCLUDE_SIMSENSORS
 
#define PIOS_INCLUDE_ADC
 
#define PIOS_INCLUDE_SIMSENSORS_YASIM
 

Functions

void PIOS_Board_Init (void)
 
void Stack_Change (void)
 
static void initTask ()
 
int main (int argc, char *argv[])
 
void system_task ()
 

Variables

static int g_argc
 
static char ** g_argv
 
 MODULE_INITSYSTEM_DECLS
 
const struct pios_tcp_cfg pios_tcp_telem_cfg
 
uintptr_t pios_uavo_settings_fs_id
 
uintptr_t pios_com_debug_id
 
uintptr_t pios_com_openlog_id
 
uintptr_t pios_com_telem_usb_id
 
uintptr_t pios_com_telem_serial_id
 
uintptr_t pios_com_telem_usb_id
 
uintptr_t pios_com_gps_id
 
uintptr_t pios_com_debug_id
 
uintptr_t pios_com_openlog_id
 
uintptr_t pios_com_lighttelemetry_id
 
uintptr_t pios_com_msp_id
 

Detailed Description

Macro Definition Documentation

#define CAMERASTAB_POI_MODE

Definition at line 78 of file pios_config.h.

#define CPULOAD_LIMIT_CRITICAL   95

Definition at line 73 of file pios_config.h.

#define CPULOAD_LIMIT_WARNING   80

Definition at line 72 of file pios_config.h.

#define DEBUG_LEVEL   2

Definition at line 72 of file pios_board.h.

#define DEBUG_PRINTF (   level,
  ... 
)    do { if ((level) <= DEBUG_LEVEL) { fprintf(stderr, __VA_ARGS__); } } while (0)

Definition at line 75 of file pios_board.h.

#define HEAP_LIMIT_CRITICAL   1000

Definition at line 69 of file pios_config.h.

#define HEAP_LIMIT_WARNING   4000

Definition at line 68 of file pios_config.h.

#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD   9959

Definition at line 75 of file pios_config.h.

#define IRQSTACK_LIMIT_CRITICAL   80

Definition at line 71 of file pios_config.h.

#define IRQSTACK_LIMIT_WARNING   150

Definition at line 70 of file pios_config.h.

#define PIOS_ADC_SUB_DRIVER_MAX_INSTANCES   3

Definition at line 35 of file pios_board.h.

#define PIOS_ANNUNC_NUM   2

Definition at line 42 of file pios_board.h.

#define PIOS_COM_BUFFER_SIZE   1024

Definition at line 50 of file pios_board.h.

#define PIOS_COM_DEBUG   (pios_com_debug_id)

Definition at line 67 of file pios_board.h.

#define PIOS_COM_GPS   (pios_com_gps_id)

Definition at line 65 of file pios_board.h.

#define PIOS_COM_GPS_RX_BUF_LEN   96

Definition at line 63 of file pios_board.c.

#define PIOS_COM_LIGHTTELEMETRY   (pios_com_lighttelemetry_id)

Definition at line 69 of file pios_board.h.

#define PIOS_COM_MAX_DEVS   255

Definition at line 51 of file pios_board.h.

#define PIOS_COM_MSP   (pios_com_msp_id)

Definition at line 66 of file pios_board.h.

#define PIOS_COM_OPENLOG   (pios_com_openlog_id)

Definition at line 68 of file pios_board.h.

#define PIOS_COM_TELEM_TCP_RX_BUF_LEN   384

Definition at line 61 of file pios_board.c.

#define PIOS_COM_TELEM_TCP_TX_BUF_LEN   384

Definition at line 62 of file pios_board.c.

#define PIOS_COM_TELEM_USB   (pios_com_telem_usb_id)

Definition at line 64 of file pios_board.h.

#define PIOS_INCLUDE_ADC

Definition at line 113 of file pios_config.h.

#define PIOS_INCLUDE_ANNUNC

Definition at line 37 of file pios_config.h.

#define PIOS_INCLUDE_BL_HELPER

Definition at line 54 of file pios_config.h.

#define PIOS_INCLUDE_COM

Definition at line 40 of file pios_config.h.

#define PIOS_INCLUDE_FAKETICK

Definition at line 111 of file pios_config.h.

#define PIOS_INCLUDE_FLASH

Definition at line 55 of file pios_config.h.

#define PIOS_INCLUDE_GPS

Definition at line 41 of file pios_config.h.

#define PIOS_INCLUDE_GPS_NMEA_PARSER

Definition at line 42 of file pios_config.h.

#define PIOS_INCLUDE_GPS_UBX_PARSER

Definition at line 43 of file pios_config.h.

#define PIOS_INCLUDE_IAP

Definition at line 53 of file pios_config.h.

#define PIOS_INCLUDE_INITCALL   /* Include init call structures */

Definition at line 58 of file pios_config.h.

#define PIOS_INCLUDE_LIGHTTELEMETRY

Definition at line 45 of file pios_config.h.

#define PIOS_INCLUDE_LOGFS_SETTINGS

Definition at line 56 of file pios_config.h.

#define PIOS_INCLUDE_MSP_BRIDGE

Definition at line 44 of file pios_config.h.

#define PIOS_INCLUDE_OPENLOG

Definition at line 46 of file pios_config.h.

#define PIOS_INCLUDE_RANGEFINDER

Definition at line 57 of file pios_config.h.

#define PIOS_INCLUDE_RCVR

Definition at line 51 of file pios_config.h.

#define PIOS_INCLUDE_RTC

Definition at line 59 of file pios_config.h.

#define PIOS_INCLUDE_RTOS   /* Indicates an RTOS is present */

Definition at line 38 of file pios_config.h.

#define PIOS_INCLUDE_SERVO

Definition at line 50 of file pios_config.h.

#define PIOS_INCLUDE_SIMSENSORS

Definition at line 112 of file pios_config.h.

#define PIOS_INCLUDE_SIMSENSORS_YASIM

Definition at line 116 of file pios_config.h.

#define PIOS_INCLUDE_SYS

Definition at line 36 of file pios_config.h.

#define PIOS_INCLUDE_TCP

Definition at line 48 of file pios_config.h.

#define PIOS_INCLUDE_UAVTALKRCVR

Definition at line 52 of file pios_config.h.

#define PIOS_INCLUDE_UDP

Definition at line 49 of file pios_config.h.

#define PIOS_LED_ALARM   1

Definition at line 41 of file pios_board.h.

#define PIOS_LED_HEARTBEAT   0

Definition at line 40 of file pios_board.h.

#define PIOS_RCVR_MAX_CHANNELS   12

Definition at line 61 of file pios_config.h.

#define PIOS_SERIAL_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE

Definition at line 54 of file pios_board.h.

#define PIOS_TCP_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE

Definition at line 53 of file pios_board.h.

#define PIOS_TELEM_STACK_SIZE   PIOS_THREAD_STACK_SIZE_MIN

Definition at line 64 of file pios_config.h.

#define PIOS_UDP_RX_BUFFER_SIZE   PIOS_COM_BUFFER_SIZE

Definition at line 52 of file pios_board.h.

Function Documentation

void initTask ( void  )
static

Initialization task.

Runs board and module initialization, then terminates.

Definition at line 79 of file main.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 52 of file main.c.

void PIOS_Board_Init ( void  )

PIOS_Board_Init() initializes all the core systems on this specific hardware called from System/openpilot.c

Definition at line 85 of file pios_board.c.

void Stack_Change ( void  )

Definition at line 53 of file pios_board.c.

void system_task ( )

Definition at line 223 of file systemmod.c.

Variable Documentation

int g_argc
static

Definition at line 49 of file main.c.

char** g_argv
static

Definition at line 50 of file main.c.

MODULE_INITSYSTEM_DECLS

Definition at line 70 of file main.c.

uintptr_t pios_com_debug_id

Definition at line 76 of file pios_board.c.

uintptr_t pios_com_debug_id

Definition at line 76 of file pios_board.c.

uintptr_t pios_com_gps_id

Definition at line 80 of file pios_hal.c.

uintptr_t pios_com_lighttelemetry_id
uintptr_t pios_com_msp_id
uintptr_t pios_com_openlog_id

Definition at line 77 of file pios_board.c.

uintptr_t pios_com_openlog_id

Definition at line 77 of file pios_board.c.

uintptr_t pios_com_telem_serial_id

Definition at line 127 of file pios_hal.c.

uintptr_t pios_com_telem_usb_id

Definition at line 42 of file pios_board.c.

uintptr_t pios_com_telem_usb_id

Definition at line 78 of file pios_board.c.

const struct pios_tcp_cfg pios_tcp_telem_cfg
Initial value:
= {
.ip = "0.0.0.0",
.port = 9000,
}

Definition at line 56 of file pios_board.c.

uintptr_t pios_uavo_settings_fs_id

Simulation of the flash filesystem

Definition at line 70 of file pios_board.c.