Add mounting structure simulation
This commit is contained in:
parent
beaff00ee9
commit
3cba41f49f
6 changed files with 11478 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
void ina226_init() {
|
void ina226_init() {
|
||||||
/* FIXME plug in final values for I meas backchannel */
|
/* FIXME plug in final values for I meas backchannel */
|
||||||
uint16_t config = INA226_CONFIG_AVG_128 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_1m1 |
|
uint16_t config = INA226_CONFIG_AVG_1 | INA226_CONFIG_VBUSCT_204u | INA226_CONFIG_VSHCT_4m156 |
|
||||||
INA226_CONFIG_MODE_SHUNT | INA226_CONFIG_MODE_BUS | INA226_CONFIG_MODE_CONT;
|
INA226_CONFIG_MODE_SHUNT | INA226_CONFIG_MODE_BUS | INA226_CONFIG_MODE_CONT;
|
||||||
ina226_write_reg(INA226_REG_CONFIG, config);
|
ina226_write_reg(INA226_REG_CONFIG, config);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ int main(void) {
|
||||||
TIM3->BDTR = TIM_BDTR_MOE;
|
TIM3->BDTR = TIM_BDTR_MOE;
|
||||||
/* Enable timer */
|
/* Enable timer */
|
||||||
TIM3->CR1 |= TIM_CR1_CEN;
|
TIM3->CR1 |= TIM_CR1_CEN;
|
||||||
/* Set f=2.5kHz/T=0.4ms */
|
/* Set f=1.25kHz/T=0.8ms */
|
||||||
TIM3->ARR = 800-1;
|
TIM3->ARR = 800-1;
|
||||||
|
|
||||||
/* Initialize AC protocol state machine in TIM3 ISR with the AC protocol comma */
|
/* Initialize AC protocol state machine in TIM3 ISR with the AC protocol comma */
|
||||||
|
|
|
||||||
2091
frame/displacement_plot.svg
Normal file
2091
frame/displacement_plot.svg
Normal file
File diff suppressed because it is too large
Load diff
|
After Width: | Height: | Size: 66 KiB |
707
frame/frame_simulation.ipynb
Normal file
707
frame/frame_simulation.ipynb
Normal file
File diff suppressed because one or more lines are too long
4301
frame/initial_plot.svg
Normal file
4301
frame/initial_plot.svg
Normal file
File diff suppressed because it is too large
Load diff
|
After Width: | Height: | Size: 163 KiB |
4377
frame/optimized_plot.svg
Normal file
4377
frame/optimized_plot.svg
Normal file
File diff suppressed because it is too large
Load diff
|
After Width: | Height: | Size: 164 KiB |
Loading…
Add table
Add a link
Reference in a new issue