예제 #1
0
/*
 *  call-seq:
 *     Battery.mA  # => Fixnum
 *
 *  Get the current draw from the battery
 *
 *  Returns current in mA
 */
static mrb_value
mrb_battery_mA(mrb_state *mrb, mrb_value self)
{
  return mrb_fixnum_value(ev3_battery_current_mA());
}
예제 #2
0
/*
 * Bridge:  get_battery_current
 */
i_t
EV3B_get_battery_current()
{
  return ev3_battery_current_mA();
}
예제 #3
0
int	CwrBattery::GetmA()	// バッテリの電流を取得する.(mA)
{
	return	ev3_battery_current_mA();
}