Skip to content

Commit

Permalink
Notes on motor testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Aug 5, 2015
1 parent e533cac commit 14f443e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions r/motors.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
s50303s <- read.csv("/tmp/x/ss2204_5030_3s_2.log", header=F)

names(s50303s) <- c('cycle', 'pwm', 'rpm', 'grams', 'voltage', 'current')

s50303s$test <- 'ss2204 5030 3s'

combined <- rbind(s50303s, s50453s, s60303s, s60304s)

combined$test <- factor(combined$test)

combined <- combined[order(combined$test, combined$cycle),]

ggplot(combined, aes(grams, current, color=current)) +
geom_line() + stat_smooth() + facet_wrap(~test, scales='free_x') +
scale_color_gradient(low='black', high='red')

0 comments on commit 14f443e

Please sign in to comment.