init by name
| 39 | |
| 40 | // init by name |
| 41 | bool Parameter::init(const char *name) |
| 42 | { |
| 43 | vp = AP_Param::find(name, &vtype); |
| 44 | if (vp == nullptr) { |
| 45 | return false; |
| 46 | } |
| 47 | return true; |
| 48 | } |
| 49 | |
| 50 | // init by info, to get the value of old params |
| 51 | bool Parameter::init_by_info(uint16_t key, uint32_t group_element, enum ap_var_type type) |