cleanup old lisbBM dev non related with the PR

This commit is contained in:
Thomas Solatges 2022-12-02 11:41:38 +01:00
parent fa01773ab6
commit 164bcf7052
2 changed files with 0 additions and 18 deletions

View File

@ -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

View File

@ -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);