API Reference
Motor API
The MotorInterface provides standard commands for all actuators, from simple DC motors to high-precision servos.
kenate.BaseState()
The foundation for all custom behaviors. These methods are available within any state via self.
get_height_sensor()Returns current altitude/height in millimeters.
get_distance_sensor()Returns obstacle proximity (0-100 range).
get_battery_level()Returns battery percentage (0-100).
get_system_temperature()Returns core temperature in Celsius (Kernel-polled).
on_enter() / on_update() / on_exit()The core state lifecycle hooks (1ms heartbeat).
kenate.Robot()
The high-level manager for mission execution.
create_state(name, class)Registers a behavior in the engine's state table.
start()Commencing the mission heartbeat.
stop()Terminates the mission safely (Actuator Lock).
The Mock Motor
For workstation development, use kenate.MockMotor(). It inherits all methods from the standard interface but simulates the hardware behavior entirely in software.
# Prototyping without a robot motor = kenate.MockMotor() motor.set_velocity(0.8) print(motor.get_velocity()) # Returns 0.8 simulated