mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 08:23:56 -04:00
AP_HAL_SITL: add simulator for IntelligentEnergy 2.4kWh
This commit is contained in:
parent
f7b2856af0
commit
c52298352a
@ -355,6 +355,9 @@ int SITL_State::sim_fd(const char *name, const char *arg)
|
||||
} else if (streq(name, "richenpower")) {
|
||||
sitl_model->set_richenpower(&_sitl->richenpower_sim);
|
||||
return _sitl->richenpower_sim.fd();
|
||||
} else if (streq(name, "ie24")) {
|
||||
sitl_model->set_ie24(&_sitl->ie24_sim);
|
||||
return _sitl->ie24_sim.fd();
|
||||
} else if (streq(name, "gyus42v2")) {
|
||||
if (gyus42v2 != nullptr) {
|
||||
AP_HAL::panic("Only one gyus42v2 at a time");
|
||||
@ -459,6 +462,8 @@ int SITL_State::sim_fd_write(const char *name)
|
||||
return rplidara2->write_fd();
|
||||
} else if (streq(name, "richenpower")) {
|
||||
return _sitl->richenpower_sim.write_fd();
|
||||
} else if (streq(name, "ie24")) {
|
||||
return _sitl->ie24_sim.write_fd();
|
||||
} else if (streq(name, "gyus42v2")) {
|
||||
if (gyus42v2 == nullptr) {
|
||||
AP_HAL::panic("No gyus42v2 created");
|
||||
|
Loading…
Reference in New Issue
Block a user