mirror of https://github.com/rusefi/bldc.git
cleanup old lisbBM dev non related with the PR
This commit is contained in:
parent
fa01773ab6
commit
164bcf7052
|
@ -174,9 +174,6 @@
|
|||
// Voltage on ADC channel
|
||||
#define ADC_VOLTS(ch) ((float)ADC_Value[ch] / 4096.0 * V_REG)
|
||||
|
||||
//Voltage on ADC "TEMP"
|
||||
#define ADC_TEMP_MOTOR_RAW() ((float)ADC_Value[ADC_IND_TEMP_MOTOR] / 4096.0 * V_REG) //TODO totosolat
|
||||
|
||||
// COMM-port ADC GPIOs
|
||||
#define HW_ADC_EXT_GPIO GPIOA
|
||||
#define HW_ADC_EXT_PIN 5
|
||||
|
|
|
@ -1374,19 +1374,6 @@ static lbm_value ext_get_temp_mot(lbm_value *args, lbm_uint argn) {
|
|||
return lbm_enc_float(mc_interface_temp_motor_filtered());
|
||||
}
|
||||
|
||||
//TODO totosolat
|
||||
static lbm_value ext_get_temp_mot_raw(lbm_value *args, lbm_uint argn) {
|
||||
(void)args; (void)argn;
|
||||
return lbm_enc_float(ADC_TEMP_MOTOR_RAW()); //ADC_TEMP_MOTOR_RAW();
|
||||
}
|
||||
|
||||
static lbm_value ext_get_pos(lbm_value *args, lbm_uint argn) {
|
||||
(void)args; (void)argn;
|
||||
return lbm_enc_float(mc_interface_get_pid_pos_now());
|
||||
//return lbm_enc_float(encoder_read_deg());
|
||||
}
|
||||
//TODO totosolat
|
||||
|
||||
static lbm_value ext_get_speed(lbm_value *args, lbm_uint argn) {
|
||||
(void)args; (void)argn;
|
||||
return lbm_enc_float(mc_interface_get_speed());
|
||||
|
@ -4417,8 +4404,6 @@ void lispif_load_vesc_extensions(void) {
|
|||
lbm_add_extension("get-rpm", ext_get_rpm);
|
||||
lbm_add_extension("get-temp-fet", ext_get_temp_fet);
|
||||
lbm_add_extension("get-temp-mot", ext_get_temp_mot);
|
||||
lbm_add_extension("get-temp-mot-raw", ext_get_temp_mot_raw); //TODO totosolat _raw
|
||||
lbm_add_extension("get-pos", ext_get_pos);
|
||||
lbm_add_extension("get-speed", ext_get_speed);
|
||||
lbm_add_extension("get-dist", ext_get_dist);
|
||||
lbm_add_extension("get-dist-abs", ext_get_dist_abs);
|
||||
|
|
Loading…
Reference in New Issue