MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / init

Method init

libraries/AP_HAL_Linux/Util.cpp:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#endif
24
25void Util::init(int argc, char * const *argv) {
26 saved_argc = argc;
27 saved_argv = argv;
28
29#ifdef HAL_UTILS_HEAT
30#if HAL_UTILS_HEAT == HAL_LINUX_HEAT_PWM
31 _heat = NEW_NOTHROW Linux::HeatPwm(HAL_LINUX_HEAT_PWM_NUM,
32 HAL_LINUX_HEAT_KP,
33 HAL_LINUX_HEAT_KI,
34 HAL_LINUX_HEAT_PERIOD_NS);
35#else
36 #error Unrecognized Heat
37#endif // #if
38#else
39 _heat = NEW_NOTHROW Linux::Heat();
40#endif // #ifdef
41}
42
43// set current IMU temperatue in degrees C
44void Util::set_imu_temp(float current)

Callers 3

toneAlarm_initMethod · 0.45
runMethod · 0.45
HeatPwmMethod · 0.45

Calls 2

HeatPwmClass · 0.85
HeatClass · 0.85

Tested by

no test coverage detected