Commit fe0bb63b authored by Wenxi Xu's avatar Wenxi Xu
Browse files

IMU temp control applied for dm_mc02

parent 481f018d
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
		zephyr,canbus = &fdcan1;
		zephyr,dtcm = &dtcm;
		zephyr,itcm = &itcm;
		ares,pwm = &heater;
		sbus,uart = &uart5;
		ares,usb = &cdc_acm_uart;
	};
@@ -75,6 +76,23 @@
		};
	};

	pwmleds: pwmleds {
		compatible = "pwm-leds";
		status = "okay";
		heater: heater {
			pwms = <&pwm3 4 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
		};
	};

	imu_temp_pid: imu_temp_pid {
		#controller-cells = <0>;
		compatible = "pid,single";
		k_p = "50000";
		k_d = "0.02";
		out_max = "1000000.000000";
		offset = "380000.000000";
	};

	dut: rtt0: rtt_chan0 {
		compatible = "segger,rtt-uart";
		status = "okay";
@@ -305,3 +323,13 @@ zephyr_udc0: &usbotg_hs {
		reset-delay = <250>;
	};
};

&timers3 {
	status = "okay";
	st,prescaler = <10000>;
	pwm3: pwm {
		status = "okay";
		pinctrl-0 = <&tim3_ch4_pb1>;
		pinctrl-names = "default";
	};
};
 No newline at end of file
+9 −1
Original line number Diff line number Diff line
@@ -72,4 +72,12 @@ CONFIG_BMI08X_GYRO_THREAD_PRIORITY=10
CONFIG_BMI08X_GYRO_THREAD_STACK_SIZE=2048
CONFIG_BMI08X_I2C_WRITE_BURST_SIZE=16

CONFIG_IMU_PWM_TEMP_CTRL=y
CONFIG_PWM=y

CONFIG_CRC=y

CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_MATRIX=y
CONFIG_CMSIS_DSP_CONTROLLER=y
CONFIG_CMSIS_DSP_FASTMATH=y
 No newline at end of file