/* * Initialize all plugins */ void wdt_plugins_init(uev_ctx_t *ctx, int T) { /* Start file descriptor monitor */ filenr_init(ctx, T); /* Start load average monitor, if enabled */ loadavg_init(ctx, T); /* Start memory leak monitor */ meminfo_init(ctx, T); /* Start process monitor */ pmon_init(ctx, T); }
bool health_init() { loadavg_init(); //sgbatmon_init(); ap_roll = fgGetNode("/autopilot/internal/target-roll-deg", true); ap_hdg = fgGetNode( "/autopilot/settings/true-heading-deg", true ); ap_pitch = fgGetNode( "/autopilot/settings/target-pitch-deg", true ); ap_climb = fgGetNode("/autopilot/internal/target-climb-rate-fps", true); ap_altitude = fgGetNode( "/autopilot/settings/target-altitude-ft", true ); ground_ref = fgGetNode( "/position/ground-altitude-pressure-m", true ); ap_agl = fgGetNode( "/autopilot/settings/target-agl-ft", true ); // set initial values healthpacket.command_sequence = 0; healthpacket.target_waypoint = 0; return true; }