1#ifndef BITSIM_UTILS_RENDER_KEYBOARD_RC_H
2#define BITSIM_UTILS_RENDER_KEYBOARD_RC_H
10#include "bitsim/bitsim_config.h"
12#if defined(BITSIM_IRRLICHT) && defined(BITSIM_CHRONO)
55 bool OnEvent(
const irr::SEvent &event)
override;
75 void set_key(irr::EKEY_CODE key,
bool down);
78 bool is_down_(irr::EKEY_CODE key)
const {
return down_[key]; }
85 std::array<bool, irr::KEY_KEY_CODES_COUNT> down_{};
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
control::RCCommand command(real_t dt)
The command for the keys held now, dt [s] after the last call.
Definition keyboard_rc.cpp:70
void set_key(irr::EKEY_CODE key, bool down)
Hold a key down or let it go, as if it were pressed, for tests and scripts.
Definition keyboard_rc.cpp:42
bool reset_requested()
True once after R was pressed.
Definition keyboard_rc.cpp:88
void reset()
Put the throttle down and disarm.
Definition keyboard_rc.cpp:95
KeyboardRC(real_t throttle_rate=0.25, real_t deflection=1.0)
Definition keyboard_rc.cpp:37
bool OnEvent(const irr::SEvent &event) override
Definition keyboard_rc.cpp:59
Definition irrlicht_scene.cpp:20
Definition bitsim_utils.h:11
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20
What the sticks of a radio transmitter for a quadrotor say, as a toy drone's transmitter sends them: ...
Definition rc_command.h:20